Commit 5453f114 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Clean up properly if the grab fails. (finish_drag): Don't leak a reference

2006-01-11  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkwindow-x11.c (create_moveresize_window): Clean
	up properly if the grab fails.
	(finish_drag): Don't leak a reference to moveresize_window
	here.
parent 29b890f9
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkwindow-x11.c (create_moveresize_window): Clean
up properly if the grab fails.
(finish_drag): Don't leak a reference to moveresize_window
here.
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkevents-x11.c: Fix string offsets.
......
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkwindow-x11.c (create_moveresize_window): Clean
up properly if the grab fails.
(finish_drag): Don't leak a reference to moveresize_window
here.
2006-01-11 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkevents-x11.c: Fix string offsets.
......
......@@ -5607,6 +5607,7 @@ finish_drag (MoveResizeData *mv_resize)
{
gdk_window_destroy (mv_resize->moveresize_emulation_window);
mv_resize->moveresize_emulation_window = NULL;
g_object_unref (mv_resize->moveresize_window);
mv_resize->moveresize_window = NULL;
if (mv_resize->moveresize_pending_event)
......@@ -5786,8 +5787,7 @@ create_moveresize_window (MoveResizeData *mv_resize,
/* If this fails, some other client has grabbed the window
* already.
*/
gdk_window_destroy (mv_resize->moveresize_emulation_window);
mv_resize->moveresize_emulation_window = NULL;
finish_drag (mv_resize);
}
mv_resize->moveresize_process_time = 0;
......
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