From: Enlightenment C. <no...@cv...> - 2008-03-20 17:56:47
|
Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore Dir : e17/libs/ecore/src/lib/ecore_file Modified Files: ecore_file_download.c Log Message: and only delete job list if its not null. =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_file/ecore_file_download.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- ecore_file_download.c 20 Mar 2008 02:10:55 -0000 1.22 +++ ecore_file_download.c 20 Mar 2008 17:56:41 -0000 1.23 @@ -66,12 +66,14 @@ { if (--init == 0) { - ecore_event_handler_del(_url_complete_handler); - ecore_event_handler_del(_url_progress_download); + if (_url_complete_handler) + ecore_event_handler_del(_url_complete_handler); + if (_url_progress_download) + ecore_event_handler_del(_url_progress_download); _url_complete_handler = NULL; _url_progress_download = NULL; - - ecore_list_destroy(_job_list); + if (_job_list) + ecore_list_destroy(_job_list); _job_list = NULL; } |