]> spindle.queued.net Git - midori/commitdiff
Fix a memory leak in the address completion match handling
authorChristian Dywan <christian@twotoasts.de>
Sat, 3 Oct 2009 00:04:15 +0000 (02:04 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 3 Oct 2009 00:04:15 +0000 (02:04 +0200)
midori/midori-locationaction.c

index 0270f9c31afb7d68e0b8d804f4b801bd15fa2595..ffda4453dba64e0150289a9ddffee8552bd583f3 100644 (file)
@@ -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;
 }