From: Christian Dywan Date: Thu, 12 Jul 2012 20:53:54 +0000 (+0200) Subject: Always copy the filename of extension modules X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00ca0c46877974dc2693111097ddeb304180adea;p=midori Always copy the filename of extension modules There's a suspected memory corruption otherwise. --- diff --git a/midori/main.c b/midori/main.c index fe3a633e..b57fef5a 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1246,7 +1246,7 @@ midori_load_module (MidoriApp* app, modules = g_hash_table_new (g_direct_hash, g_direct_equal); if (g_hash_table_contains (modules, module)) return; - g_hash_table_insert (modules, module, (gchar*)filename); + g_hash_table_insert (modules, module, g_strdup (filename)); if (module && g_module_symbol (module, "extension_init", (gpointer) &extension_init)