diff options
author | Timm Bäder <mail@baedert.org> | 2020-12-17 18:45:47 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-12-21 10:26:02 +0100 |
commit | 810cd7881ea487dfe75ea3f9553b4d07dd276ba8 (patch) | |
tree | 3ac49344a4745f085351a8cee5254216dde4049b | |
parent | a8213d7f4529483abe84c96f0c010edf1eacf6f8 (diff) | |
download | gtk+-810cd7881ea487dfe75ea3f9553b4d07dd276ba8.tar.gz |
icontheme: Make icon_paintable_ensure_texture() return an unowned value
It's private, has only one caller and that one doesn't need the extra
ref.
-rw-r--r-- | gtk/gtkicontheme.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 8792135846..08da8ce2d0 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -3850,7 +3850,7 @@ gtk_icon_paintable_ensure_texture (GtkIconPaintable *self) icon_ensure_texture__locked (self, FALSE); - texture = g_object_ref (self->texture); + texture = self->texture; g_mutex_unlock (&self->texture_lock); @@ -3971,11 +3971,8 @@ gtk_icon_paintable_snapshot_with_colors (GtkIconPaintable *icon, if (symbolic) gtk_snapshot_pop (snapshot); - - g_object_unref (texture); } - static GdkPaintableFlags icon_paintable_get_flags (GdkPaintable *paintable) { |