From: Christian Dywan Date: Thu, 12 Jul 2012 21:20:09 +0000 (+0200) Subject: Free frozen extension list as GDestroyNotify X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c13da3b1b390fc242e1b368c7e6b2e1087fb801a;p=midori Free frozen extension list as GDestroyNotify --- diff --git a/midori/main.c b/midori/main.c index b57fef5a..e6c121cf 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1329,7 +1329,6 @@ midori_load_extensions (gpointer data) g_free (extension_path); } } - g_strfreev (keys); #ifdef G_ENABLE_DEBUG if (startup_timer) @@ -2534,7 +2533,7 @@ main (int argc, G_CALLBACK (midori_trash_remove_item_cb), NULL); katze_item_set_parent (KATZE_ITEM (_session), app); - g_object_set_data (G_OBJECT (app), "extensions", extensions); + g_object_set_data_full (G_OBJECT (app), "extensions", extensions, (GDestroyNotify)g_strfreev); /* We test for the presence of a dummy file which is created once and deleted during normal runtime, but persists in case of a crash. */ katze_assign (config_file, g_build_filename (config, "running", NULL));