From a51b8f18dcac2ebcbf5ee7742b4551d3b54dbd7e Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 3 Oct 2009 02:04:15 +0200 Subject: [PATCH] Fix a memory leak in the address completion match handling --- midori/midori-locationaction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 0270f9c3..ffda4453 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -733,10 +733,11 @@ midori_location_entry_completion_match_cb (GtkEntryCompletion* completion, temp = g_utf8_casefold (title, -1); match = (strstr (temp, key) != NULL); g_free (temp); - g_free (title); } } + g_free (title); + return match; }