2005-08-19 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display)
+ (xdnd_read_actions, get_client_window_at_coords_recurse):
+ Free data returned from XGetWindowProperty.
+
+ * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window)
+ Free data returned from XGetWindowProperty. (313867, Kjartan
+ Maraas)
+
* gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
children in all cases. (#313862, Kjartan Maraas)
2005-08-19 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display)
+ (xdnd_read_actions, get_client_window_at_coords_recurse):
+ Free data returned from XGetWindowProperty.
+
+ * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window)
+ Free data returned from XGetWindowProperty. (313867, Kjartan
+ Maraas)
+
* gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
children in all cases. (#313862, Kjartan Maraas)
2005-08-19 Matthias Clasen <mclasen@redhat.com>
+ * gdk/x11/gdkdnd-x11.c (_gdk_drag_get_protocol_for_display)
+ (xdnd_read_actions, get_client_window_at_coords_recurse):
+ Free data returned from XGetWindowProperty.
+
+ * gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window)
+ Free data returned from XGetWindowProperty. (313867, Kjartan
+ Maraas)
+
* gdk/x11/gdkdnd-x11.c (get_client_window_at_coords_recurse): Free
children in all cases. (#313862, Kjartan Maraas)
gdk_error_trap_push ();
+ data = NULL;
if (XGetWindowProperty (GDK_DISPLAY_XDISPLAY (display),
GDK_DRAWABLE_XID (context->source_window),
gdk_x11_get_xatom_by_name_for_display (display, "XdndActionList"),
}
#endif /* G_ENABLE_DEBUG */
- XFree(atoms);
}
+
+ if (data)
+ XFree (data);
gdk_error_trap_pop ();
}
if (gdk_error_trap_pop () || (format != 32) || (type != XA_ATOM))
{
g_object_unref (new_context);
+
+ if (data)
+ XFree (data);
+
return GDK_FILTER_REMOVE;
}
0, 0, False, AnyPropertyType,
&type, &format, &nitems, &data) &&
type != None)
- rootwin = TRUE;
+ {
+ XFree (data);
+ rootwin = TRUE;
+ }
}
#endif
if (screen_x11->wmspec_check_window != None)
return; /* already have it */
+ data = NULL;
XGetWindowProperty (GDK_DISPLAY_XDISPLAY (display), screen_x11->xroot_window,
gdk_x11_get_xatom_by_name_for_display (display, "_NET_SUPPORTING_WM_CHECK"),
0, G_MAXLONG, False, XA_WINDOW, &type, &format,
&n_items, &bytes_after, &data);
if (type != XA_WINDOW)
- return;
+ {
+ if (data)
+ XFree (data);
+ return;
+ }
xwindow = (Window *)data;
if (gdk_error_trap_pop () == Success)
{
screen_x11->wmspec_check_window = *xwindow;
- XFree (xwindow);
-
screen_x11->need_refetch_net_supported = TRUE;
screen_x11->need_refetch_wm_name = TRUE;
/* Careful, reentrancy */
_gdk_x11_screen_window_manager_changed (GDK_SCREEN (screen_x11));
}
+
+ XFree (xwindow);
}
/**