Plug leaks in formhistory_suggestion_remove

This commit is contained in:
Christian Dywan 2012-02-13 01:31:02 +01:00
parent 93bec3142f
commit 669167eb9e

View file

@ -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);
}