Fix call to onCloseEvent

This commit is contained in:
Emmanuel Papin 2015-01-17 21:54:47 +01:00
parent 7906307580
commit a7b912b1b5
1 changed files with 4 additions and 2 deletions

View File

@ -3119,8 +3119,10 @@ bool Monitor::closeEvent()
if ( function == RECORD || function == MOCORD )
{
gettimeofday( &(event->EndTime()), NULL );
if ( config.load_plugins )
ThePluginManager.getImageAnalyser().onCloseEvent( zones, event );
}
if ( config.load_plugins && ( purpose == ANALYSIS ) )
{
ThePluginManager.getImageAnalyser().onCloseEvent( zones, event );
}
delete event;
event = 0;