From d1967241fdd0baeab2c0a934cd78ed9ade6bb9bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 12 Feb 2009 22:43:31 +0100 Subject: [PATCH] Fix a memory leak when obtaining the selection from the web view --- midori/midori-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 697974ce..dc35fc61 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1757,8 +1757,8 @@ midori_view_has_selection (MidoriView* view) { g_return_val_if_fail (MIDORI_IS_VIEW (view), FALSE); - view->selected_text = webkit_web_view_get_selected_text ( - WEBKIT_WEB_VIEW (view->web_view)); + katze_assign (view->selected_text, webkit_web_view_get_selected_text ( + WEBKIT_WEB_VIEW (view->web_view))); if (view->selected_text && *view->selected_text) return TRUE; else -- 2.39.5