]> spindle.queued.net Git - midori/commitdiff
Fix a crash caused by a mistaken attempt at plugging a leak
authorChristian Dywan <christian@twotoasts.de>
Thu, 14 May 2009 22:58:58 +0000 (00:58 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 14 May 2009 22:58:58 +0000 (00:58 +0200)
midori/midori-view.c

index 5e803d83292fcaff40e02faa8c7f302f2ac55695..867cb227606f4c872a7dcdfb203fa0134541b9a7 100644 (file)
@@ -783,8 +783,9 @@ webkit_web_view_load_finished_cb (WebKitWebView*  web_view,
             g_strfreev (parts);
         }
         g_strfreev (items);
-        g_object_set_data_full (G_OBJECT (view), "news-feeds",
-                           value && *value ? (void*)1 : (void*)0, g_free);
+        g_object_set_data (G_OBJECT (view), "news-feeds",
+                           value && *value ? (void*)1 : (void*)0);
+        g_free (value);
         /* Ensure load-status is notified again, whether it changed or not */
         g_object_notify (G_OBJECT (view), "load-status");
     }