From ecf2d1070c4c4e961da9b0bd3f1c06d648720f50 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 9 Aug 2004 04:13:36 +0000 Subject: [PATCH] Don't leak the icon source. Mon Aug 9 00:13:03 2004 Matthias Clasen * gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't leak the icon source. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkaboutdialog.c | 1 + 5 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index 707d708728..57a6bca961 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Aug 9 00:13:03 2004 Matthias Clasen + + * gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't + leak the icon source. + Sun Aug 8 23:46:20 2004 Matthias Clasen * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 707d708728..57a6bca961 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Mon Aug 9 00:13:03 2004 Matthias Clasen + + * gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't + leak the icon source. + Sun Aug 8 23:46:20 2004 Matthias Clasen * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 707d708728..57a6bca961 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Mon Aug 9 00:13:03 2004 Matthias Clasen + + * gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't + leak the icon source. + Sun Aug 8 23:46:20 2004 Matthias Clasen * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 707d708728..57a6bca961 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Mon Aug 9 00:13:03 2004 Matthias Clasen + + * gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't + leak the icon source. + Sun Aug 8 23:46:20 2004 Matthias Clasen * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 9878f986f6..f5f342b1d4 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -1225,6 +1225,7 @@ icon_set_new_from_pixbufs (GList *pixbufs) GtkIconSource *icon_source = gtk_icon_source_new (); gtk_icon_source_set_pixbuf (icon_source, pixbuf); gtk_icon_set_add_source (icon_set, icon_source); + gtk_icon_source_free (icon_source); } return icon_set;