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:
parent
5404e124b6
commit
1f154f576a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user