[Xfce4-commits] <midori:master> Plug leaks in formhistory_suggestion_remove

Christian Dywan noreply at xfce.org
Mon Feb 13 01:36:01 CET 2012


Updating branch refs/heads/master
         to 669167eb9eef603d03b62bb466cff0570055a757 (commit)
       from 93bec3142f250c542bc2e8c8b858999c8ed146b5 (commit)

commit 669167eb9eef603d03b62bb466cff0570055a757
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Feb 13 01:31:02 2012 +0100

    Plug leaks in formhistory_suggestion_remove

 extensions/formhistory/formhistory-gdom-frontend.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/extensions/formhistory/formhistory-gdom-frontend.c b/extensions/formhistory/formhistory-gdom-frontend.c
index 4bb0944..4be28df 100644
--- a/extensions/formhistory/formhistory-gdom-frontend.c
+++ b/extensions/formhistory/formhistory-gdom-frontend.c
@@ -87,6 +87,8 @@ formhistory_suggestion_remove (GtkTreePath*     path,
 
     sqlcmd = sqlite3_mprintf ("DELETE FROM forms WHERE field = '%q' AND value = '%q'",
                               name, value);
+    g_free (name);
+    g_free (value);
     sqlite3_exec (priv->db, sqlcmd, NULL, NULL, &errmsg);
     sqlite3_free (sqlcmd);
 }


More information about the Xfce4-commits mailing list