From: caro Date: Sat, 29 Aug 2009 08:44:05 +0000 (+0000) Subject: don't try to remove monitors if non has been added before X-Git-Tag: build/2012-07-04.173327~2481 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ec00e558869e123b2f6f5abd43b11a7cb79486c;p=profile%2Fivi%2Fecore.git don't try to remove monitors if non has been added before git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@42087 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_file/ecore_file_monitor_poll.c b/src/lib/ecore_file/ecore_file_monitor_poll.c index 7f2912c..fe3be7b 100644 --- a/src/lib/ecore_file/ecore_file_monitor_poll.c +++ b/src/lib/ecore_file/ecore_file_monitor_poll.c @@ -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);