diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-03-04 20:50:46 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-03-04 20:50:46 +0000 |
commit | 897f3aac78db3670803a1f485e924af598b90bb8 (patch) | |
tree | 9bc55737d6804510e93c9248f656f077bf248d9b /gtk/gtkiconfactory.c | |
parent | f855ea2dedcb0e9ecc1c338a7b6f4b4f69499770 (diff) | |
download | gtk+-897f3aac78db3670803a1f485e924af598b90bb8.tar.gz |
Increment the reference count of the style when copying the cached icon.
Thu Mar 4 21:53:46 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkiconfactory.c (copy_cache): Increment the reference
count of the style when copying the cached icon. (#135890, Crispin
Flowerday)
Diffstat (limited to 'gtk/gtkiconfactory.c')
-rw-r--r-- | gtk/gtkiconfactory.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c index b7b5521fa2..0f7bac65a1 100644 --- a/gtk/gtkiconfactory.c +++ b/gtk/gtkiconfactory.c @@ -2702,7 +2702,10 @@ copy_cache (GtkIconSet *icon_set, *icon_copy = *icon; if (icon_copy->style) - attach_to_style (copy_recipient, icon_copy->style); + { + attach_to_style (copy_recipient, icon_copy->style); + g_object_ref (icon_copy->style); + } g_object_ref (icon_copy->pixbuf); |