From 1824aa850ad72cea1d742c958c1a4a77d21b932a Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Thu, 28 Feb 2008 23:36:34 -0500 Subject: [PATCH] xwm: fix a case where the result of XGetAtomName was not freed --- xwm/lucca-window.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xwm/lucca-window.c b/xwm/lucca-window.c index 5a54a54..f058986 100644 --- a/xwm/lucca-window.c +++ b/xwm/lucca-window.c @@ -363,7 +363,9 @@ LuccaWindow* lucca_window_new(Window xwindow, LuccaScreen* screen, gboolean exis return NULL; } for (i=0; idisplay->xdisplay, property_atoms[i]), GINT_TO_POINTER(1)); + char* name = XGetAtomName(screen->display->xdisplay, property_atoms[i]); + g_datalist_set_data(&properties_set, name, GINT_TO_POINTER(1)); + XFree(name); } XFree(property_atoms); @@ -432,7 +434,9 @@ LuccaWindow* lucca_window_new_internal(LuccaBin* bin, LuccaScreen* screen) { return NULL; } for (i=0; idisplay->xdisplay, property_atoms[i]), GINT_TO_POINTER(1)); + char* name = XGetAtomName(screen->display->xdisplay, property_atoms[i]); + g_datalist_set_data(&properties_set, name, GINT_TO_POINTER(1)); + XFree(name); } XFree(property_atoms); -- 2.11.4.GIT