diff --git a/src/zm_eventstream.h b/src/zm_eventstream.h index 4c5c2d8c0..a482483b4 100644 --- a/src/zm_eventstream.h +++ b/src/zm_eventstream.h @@ -106,6 +106,10 @@ class EventStream : public StreamBase { {} ~EventStream() { if ( event_data ) { + if ( event_data->frames ) { + delete[] event_data->frames; + event_data->frames = NULL; + } delete event_data; event_data = NULL; }