mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
iconhelper: Fix leak when rendering to cairo surface
https://bugzilla.gnome.org/show_bug.cgi?id=709264
This commit is contained in:
parent
e53bb1bf1b
commit
744b790fdb
@ -667,6 +667,7 @@ ensure_stated_surface_from_info (GtkIconHelper *self,
|
|||||||
(gdk_pixbuf_get_width (destination) + scale - 1) / scale;
|
(gdk_pixbuf_get_width (destination) + scale - 1) / scale;
|
||||||
self->priv->rendered_surface_height =
|
self->priv->rendered_surface_height =
|
||||||
(gdk_pixbuf_get_height (destination) + scale - 1) / scale;
|
(gdk_pixbuf_get_height (destination) + scale - 1) / scale;
|
||||||
|
g_object_unref (destination);
|
||||||
}
|
}
|
||||||
|
|
||||||
self->priv->rendered_surface = surface;
|
self->priv->rendered_surface = surface;
|
||||||
|
Loading…
Reference in New Issue
Block a user