mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 17:50:18 +00:00
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.
This commit is contained in:
parent
a8213d7f45
commit
810cd7881e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user