window: Fix a small memory leak

This commit is contained in:
Georges Basile Stavracas Neto 2018-03-21 21:16:23 -03:00
parent 06c357d781
commit 63e2c0329f

View File

@ -5268,7 +5268,7 @@ static cairo_surface_t *
load_default_window_icon (int size) load_default_window_icon (int size)
{ {
GtkIconTheme *theme = gtk_icon_theme_get_default (); GtkIconTheme *theme = gtk_icon_theme_get_default ();
GdkPixbuf *pixbuf; g_autoptr (GdkPixbuf) pixbuf = NULL;
const char *icon_name; const char *icon_name;
if (gtk_icon_theme_has_icon (theme, META_DEFAULT_ICON_NAME)) if (gtk_icon_theme_has_icon (theme, META_DEFAULT_ICON_NAME))