From ff0b2fc717022e169bdf0fb5ec1052f0fa69abb9 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Tue, 8 Mar 2016 23:58:16 -0500 Subject: [PATCH] Fix memory leak causing XServer to crash Original XServer error message: "TouchListenerGone: couldn't allocate events" Found by running xrestop utility. --- src/dockapp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dockapp.c b/src/dockapp.c index 0ab272b..70eb9de 100644 --- a/src/dockapp.c +++ b/src/dockapp.c @@ -120,6 +120,8 @@ dockapp_set_mask(GtkWidget *iconwin, char **xpm) } gtk_widget_shape_combine_mask(iconwin, mask, 0, 0); + g_object_unref(mask); + g_object_unref(pixmap); #elif defined (HAVE_GTK3) surface = gdk_cairo_surface_create_from_pixbuf( pixbuf, 0, -- 2.20.1