From 9eac310a2190a02e87c5ff9a594de8c20c096ba4 Mon Sep 17 00:00:00 2001 From: englebass Date: Tue, 23 Nov 2010 21:15:55 +0000 Subject: [PATCH] NULL pointers after deletion git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@54907 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/efreet_cache.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/efreet_cache.c b/src/lib/efreet_cache.c index a107673..4dc8b8f 100644 --- a/src/lib/efreet_cache.c +++ b/src/lib/efreet_cache.c @@ -128,7 +128,9 @@ efreet_cache_init(void) return 1; error: if (cache_exe_handler) ecore_event_handler_del(cache_exe_handler); + cache_exe_handler = NULL; if (cache_monitor) ecore_file_monitor_del(cache_monitor); + cache_monitor = NULL; #ifdef ICON_CACHE efreet_icon_edd_shutdown(); #endif @@ -142,15 +144,19 @@ efreet_cache_shutdown(void) Efreet_Old_Cache *d; if (cache_timer) ecore_timer_del(cache_timer); + cache_timer = NULL; #ifdef ICON_CACHE icon_cache_close(); #endif if (desktop_cache) eet_close(desktop_cache); + desktop_cache = NULL; IF_RELEASE(desktop_cache_file); IF_RELEASE(desktop_cache_dirs); if (cache_exe_handler) ecore_event_handler_del(cache_exe_handler); + cache_exe_handler = NULL; if (cache_monitor) ecore_file_monitor_del(cache_monitor); + cache_monitor = NULL; #ifdef ICON_CACHE efreet_icon_edd_shutdown(); #endif -- 2.7.4