delete stream after use

This commit is contained in:
Isaac Connor
2018-04-12 10:26:18 -04:00
parent ea8a132289
commit 71d5984eb0

View File

@@ -1096,6 +1096,8 @@ void Monitor::DumpZoneImage( const char *zone_string ) {
EventStream *stream = new EventStream();
stream->setStreamStart( event_id, (unsigned int)1 );
zone_image = stream->getImage();
delete stream;
stream = NULL;
} else {
Error("Unable to load an event for monitor %d", id );
return;