Bug 556954 – gtk+/gtk/gtkrecentchooserdefault.c: mismatching allocation

2008-10-24  Matthias Clasen  <mclasen@redhat.com>

        Bug 556954 – gtk+/gtk/gtkrecentchooserdefault.c: mismatching
        allocation and deallocation

        * gtk/gtkrecentchooserdefault.c (remove_selected_from_list): Don't
        free a strdup'ed string by g_free. Pointed out by Daniel Marjamäki

svn path=/trunk/; revision=21708
This commit is contained in:
Matthias Clasen 2008-10-24 04:21:25 +00:00 committed by Matthias Clasen
parent 5899bbd492
commit 56253637f1
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2008-10-24 Matthias Clasen <mclasen@redhat.com>
Bug 556954 gtk+/gtk/gtkrecentchooserdefault.c: mismatching
allocation and deallocation
* gtk/gtkrecentchooserdefault.c (remove_selected_from_list): Don't
free a strdup'ed string by g_free. Pointed out by Daniel Marjamäki
2008-10-24 Matthias Clasen <mclasen@redhat.com>
Bug 556835 gtkentry.c: variable is declared at middle of block

View File

@ -1609,7 +1609,7 @@ remove_selected_from_list (GtkRecentChooserDefault *impl)
{
gchar *msg;
msg = strdup (_("Could not remove item"));
msg = g_strdup (_("Could not remove item"));
error_message (impl, msg, err->message);
g_free (msg);