Properly delete FramesData as well.

This commit is contained in:
Isaac Connor 2020-05-01 09:56:27 -04:00
parent 5b07cb2243
commit 3675ee1c33
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,10 @@ class EventStream : public StreamBase {
{} {}
~EventStream() { ~EventStream() {
if ( event_data ) { if ( event_data ) {
if ( event_data->frames ) {
delete[] event_data->frames;
event_data->frames = NULL;
}
delete event_data; delete event_data;
event_data = NULL; event_data = NULL;
} }