add braces and only call closeEvent if there is an event
This commit is contained in:
parent
44591432dd
commit
39e06b929f
|
@ -640,9 +640,10 @@ Monitor::~Monitor()
|
||||||
privacy_bitmask = NULL;
|
privacy_bitmask = NULL;
|
||||||
}
|
}
|
||||||
if ( mem_ptr ) {
|
if ( mem_ptr ) {
|
||||||
if ( event )
|
if ( event ) {
|
||||||
Info( "%s: %03d - Closing event %d, shutting down", name, image_count, event->Id() );
|
Info( "%s: %03d - Closing event %d, shutting down", name, image_count, event->Id() );
|
||||||
closeEvent();
|
closeEvent();
|
||||||
|
}
|
||||||
|
|
||||||
if ( (deinterlacing & 0xff) == 4)
|
if ( (deinterlacing & 0xff) == 4)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue