elementary: fix segv when exiting elementary_config.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 10:11:38 +0000 (10:11 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 10:11:38 +0000 (10:11 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@59110 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/config.c

index 2feee32..a513344 100644 (file)
@@ -117,6 +117,7 @@ config_exit(void *data       __UNUSED__,
      }
 
    elm_font_available_hash_del(fdata.font_hash);
+   fdata.font_hash = NULL;
 
    EINA_LIST_FREE(fdata.font_px_list, sd)
      {
@@ -131,7 +132,10 @@ config_exit(void *data       __UNUSED__,
      }
 
    if (fdata.cur_font) eina_stringshare_del(fdata.cur_font);
+   fdata.cur_font = NULL;
+
    if (fdata.cur_style) eina_stringshare_del(fdata.cur_style);
+   fdata.cur_style = NULL;
 
    elm_config_save();
    elm_exit(); /* exit the program's main loop that runs in elm_run() */