Commit d5a3a61c authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Free state.children in all cases. (#313862, Kjartan Maraas)

2005-08-29  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free
	state.children in all cases.  (#313862, Kjartan Maraas)
parent 26aaa97b
2005-08-29 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free
state.children in all cases. (#313862, Kjartan Maraas)
2005-08-28 Matthias Clasen <mclasen@redhat.com>
* po/POTFILES.in, po-properties/POTFILES.in:
......
2005-08-29 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkasync.c (_gdk_x11_get_window_child_info): Free
state.children in all cases. (#313862, Kjartan Maraas)
2005-08-28 Matthias Clasen <mclasen@redhat.com>
* po/POTFILES.in, po-properties/POTFILES.in:
......
......@@ -626,6 +626,9 @@ _gdk_x11_get_window_child_info (GdkDisplay *display,
else
wm_state_atom = None;
state.children = NULL;
state.nchildren = 0;
gdk_error_trap_push ();
result = list_children_and_wm_state (dpy, window,
win_has_wm_state ? wm_state_atom : None,
......@@ -633,12 +636,16 @@ _gdk_x11_get_window_child_info (GdkDisplay *display,
&state.children, &state.nchildren);
gdk_error_trap_pop ();
if (!result)
return FALSE;
{
g_free (state.children);
return FALSE;
}
if (has_wm_state)
{
if (win_has_wm_state)
*win_has_wm_state = TRUE;
g_free (state.children);
return TRUE;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment