Fix a small leak

This commit is contained in:
Matthias Clasen 2006-07-09 00:44:15 +00:00
parent 1f9890c7d8
commit a6497203fd
3 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2006-07-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (update_label_and_image): Don't
leak an empty list. (#346970, Chris Wilson)
2006-07-08 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (layout_iter_get_line_clip_region),

View File

@ -1,3 +1,8 @@
2006-07-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (update_label_and_image): Don't
leak an empty list. (#346970, Chris Wilson)
2006-07-08 Behdad Esfahbod <behdad@gnome.org>
* gdk/gdkpango.c (layout_iter_get_line_clip_region),

View File

@ -2141,7 +2141,7 @@ update_label_and_image (GtkFileChooserButton *button)
gchar *label_text;
GSList *paths;
paths = _gtk_file_chooser_get_paths (GTK_FILE_CHOOSER (button->priv->dialog));
paths = _gtk_file_chooser_get_paths (GTK_FILE_CHOOSER (priv->dialog));
label_text = NULL;
pixbuf = NULL;
@ -2185,10 +2185,9 @@ update_label_and_image (GtkFileChooserButton *button)
GTK_FILE_INFO_DISPLAY_NAME | GTK_FILE_INFO_ICON,
update_label_get_info_cb,
g_object_ref (button));
out:
gtk_file_paths_free (paths);
}
out:
gtk_file_paths_free (paths);
if (label_text)
{