fix qa config dd leak
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 30 Aug 2012 08:32:18 +0000 (08:32 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 30 Aug 2012 08:32:18 +0000 (08:32 +0000)
SVN revision: 75852

src/modules/quickaccess/e_mod_config.c

index 3d599ef..0036f28 100644 (file)
@@ -24,6 +24,8 @@ struct _E_Config_Dialog_Data
    int dont_bug_me;
 };
 
+static E_Config_DD *conf_edd, *entry_edd;
+
 /**
  * in priority order:
  *
@@ -433,8 +435,6 @@ _list_item_delete(E_Quick_Access_Entry *entry)
 E_Config_DD *
 e_qa_config_dd_new(void)
 {
-   E_Config_DD *conf_edd, *entry_edd;
-
    conf_edd = E_CONFIG_DD_NEW("Quickaccess_Config", Config);
    entry_edd = E_CONFIG_DD_NEW("E_Quick_Access_Entry", E_Quick_Access_Entry);
 
@@ -470,7 +470,9 @@ e_qa_config_dd_new(void)
 void *
 e_qa_config_dd_free(E_Config_DD *conf_dd)
 {
+   free(entry_edd);
    free(conf_dd);
+   entry_edd = conf_edd = NULL;
    return NULL;
 }