don't try to remove monitors if non has been added before

SVN revision: 42087
This commit is contained in:
Vincent Torri 2009-08-29 08:44:05 +00:00
parent d3d9560eb1
commit 17cb74c23f
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ ecore_file_monitor_poll_del(Ecore_File_Monitor *em)
}
}
_monitors = ECORE_FILE_MONITOR(eina_inlist_remove(EINA_INLIST_GET(_monitors), EINA_INLIST_GET(em)));
if (_monitors)
_monitors = ECORE_FILE_MONITOR(eina_inlist_remove(EINA_INLIST_GET(_monitors), EINA_INLIST_GET(em)));
free(em->path);
free(em);