projects
/
dockapps
/
dockbatmon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10dede9
)
Fix memory leak causing XServer to crash
author
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 9 Mar 2016 04:58:16 +0000
(23:58 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 2 Jan 2022 22:43:17 +0000
(17:43 -0500)
Original XServer error message:
"TouchListenerGone: couldn't allocate events"
Found by running xrestop utility.
src/dockapp.c
patch
|
blob
|
history
diff --git
a/src/dockapp.c
b/src/dockapp.c
index
0ab272b
..
70eb9de
100644
(file)
--- 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,