Properly delete FramesData as well.
This commit is contained in:
parent
5b07cb2243
commit
3675ee1c33
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue