]> Untitled Git - dockapps/hvclock.git/commitdiff
Fix memory leak causing XServer to crash
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 9 Mar 2016 04:58:16 +0000 (23:58 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 9 Mar 2016 22:32:59 +0000 (17:32 -0500)
Original XServer error message:
"TouchListenerGone: couldn't allocate events"

Found by running xrestop utility.

src/dockapp.c

index 5a44389e9286fe4fcaed32ee9ebe3a7862974643..e92f00e5803668eb4c9838ff2d470d94caba5481 100644 (file)
@@ -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 *