diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-06-19 09:32:38 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-06-19 09:40:19 +0200 |
commit | 280d606cd41c5d607e56d48e57bcba5b654cfa2e (patch) | |
tree | d399f131e25559585acf88421015ed940011b99f /gtk/gtkiconcache.h | |
parent | 3be5aefa3f12285ff1e276a8916d9620bda2981b (diff) | |
download | gtk+-280d606cd41c5d607e56d48e57bcba5b654cfa2e.tar.gz |
IconCache: Keep a ref on the GtkIconData
The icon data in GttkIconInfo->data is currently owned by the
IconThemeDir->icon_data hashtable. However, on e.g. a theme change
blow_themes() destroys the dirs and thus the data, meaning any
outstanding GtkIconInfo points to stale data.
We solve this by adding a refcount to GtkIconData and reffing it
from GtkIconInfo.
https://bugzilla.gnome.org/show_bug.cgi?id=702598
Diffstat (limited to 'gtk/gtkiconcache.h')
-rw-r--r-- | gtk/gtkiconcache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkiconcache.h b/gtk/gtkiconcache.h index 07e909d1a3..767e2b62cc 100644 --- a/gtk/gtkiconcache.h +++ b/gtk/gtkiconcache.h @@ -25,6 +25,7 @@ typedef struct _GtkIconData GtkIconData; struct _GtkIconData { + gint ref; gboolean has_embedded_rect; gint x0, y0, x1, y1; |