[Xfce4-commits] <midori:master> Fix a memory leak in the address completion match handling

Christian Dywan noreply at xfce.org
Sat Oct 3 02:34:02 CEST 2009


Updating branch refs/heads/master
         to a51b8f18dcac2ebcbf5ee7742b4551d3b54dbd7e (commit)
       from 2b493414d5b096c2f25009d9af471ba4b42177d1 (commit)

commit a51b8f18dcac2ebcbf5ee7742b4551d3b54dbd7e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Oct 3 02:04:15 2009 +0200

    Fix a memory leak in the address completion match handling

 midori/midori-locationaction.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 0270f9c..ffda445 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;
 }
 



More information about the Xfce4-commits mailing list