From 00ca0c46877974dc2693111097ddeb304180adea Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 12 Jul 2012 22:53:54 +0200 Subject: [PATCH] Always copy the filename of extension modules There's a suspected memory corruption otherwise. --- midori/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5