Fix compilation errors

This commit is contained in:
Emmanuel Papin 2015-01-17 19:04:20 +01:00
parent 53c8a3073f
commit 7906307580
2 changed files with 4 additions and 6 deletions

View File

@ -235,12 +235,12 @@ bool Detector::Detect(const Image &zmImage, Zone** zones, Event::StringSet &zone
void Detector::_onCreateEvent(Zone** zones, Event* event)
{
for(std::vector<unsigned int>::iterator it = m_vnPluginZones.begin(); it != m_vnPluginZones.end(); ++it)
onCreateEvent(zones[*it], *it, Event* event);
onCreateEvent(zones[*it], *it, event);
}
void Detector::_onCloseEvent(Zone** zones, Event* event)
{
for(std::vector<unsigned int>::iterator it = m_vnPluginZones.begin(); it != m_vnPluginZones.end(); ++it)
onCloseEvent(zones[*it], *it, Event* event);
onCloseEvent(zones[*it], *it, event);
}

View File

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