Fix a surface leak

Was introduced as part of b79a187d47.
Results in memory leaks (and GDI objects leaks on W32).
This commit is contained in:
Руслан Ижбулатов 2015-12-27 02:02:19 +00:00
parent 5404e124b6
commit 1f154f576a

View File

@ -575,6 +575,9 @@ gtk_icon_helper_ensure_surface (GtkIconHelper *self)
{
int scale;
if (self->priv->rendered_surface)
return;
scale = gtk_widget_get_scale_factor (gtk_css_gadget_get_owner (GTK_CSS_GADGET (self)));
self->priv->rendered_surface = gtk_icon_helper_load_surface (self, scale);