summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-03-21 21:16:23 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-03-21 21:16:23 -0300
commit63e2c0329f12401ef3c93201b53c463142e7a9ca (patch)
tree1b4e4647c90c9e19e5b620dec867809fe80d564a
parent06c357d7819cf2a648e57efe947f5a3cca7d74d2 (diff)
downloadmutter-gbsneto/small-leak.tar.gz
window: Fix a small memory leakgbsneto/small-leak
-rw-r--r--src/core/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 565698da9..86f9d69b1 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -5268,7 +5268,7 @@ static cairo_surface_t *
load_default_window_icon (int size)
{
GtkIconTheme *theme = gtk_icon_theme_get_default ();
- GdkPixbuf *pixbuf;
+ g_autoptr (GdkPixbuf) pixbuf = NULL;
const char *icon_name;
if (gtk_icon_theme_has_icon (theme, META_DEFAULT_ICON_NAME))