From: Hugo Villeneuve Date: Wed, 9 Mar 2016 04:58:16 +0000 (-0500) Subject: Fix memory leak causing XServer to crash X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=79cd14f;p=dockapps%2Fhvclock.git Fix memory leak causing XServer to crash Original XServer error message: "TouchListenerGone: couldn't allocate events" Found by running xrestop utility. --- diff --git a/src/dockapp.c b/src/dockapp.c index 5a44389..e92f00e 100644 --- a/src/dockapp.c +++ b/src/dockapp.c @@ -116,6 +116,9 @@ dockapp_set_mask(GtkWidget *iconwin, char **xpm) } gtk_widget_shape_combine_mask(iconwin, mask, 0, 0); + g_object_unref(mask); + g_object_unref(pixmap); + g_object_unref(pixbuf); } static GtkWidget *