From ade0f16053c606629dd79368b42a4dfd3ddb14c5 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 15 May 2009 00:58:58 +0200 Subject: [PATCH] Fix a crash caused by a mistaken attempt at plugging a leak --- midori/midori-view.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 5e803d83..867cb227 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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"); } -- 2.39.5