[gtk+/client-side-windows: 43/284] Don't access event after freeing it
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 43/284] Don't access event after freeing it
- Date: Thu, 2 Apr 2009 14:03:19 -0400 (EDT)
commit 5587130d48daab7189c0268be403f14bebe4c70c
Author: Alexander Larsson <alexl redhat com>
Date: Tue Dec 9 13:35:46 2008 +0100
Don't access event after freeing it
---
gdk/gdkwindow.c | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index caaf848..43723cc 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -7344,14 +7344,6 @@ _gdk_windowing_got_event (GdkDisplay *display,
unlink_event = proxy_button_event (pointer_window, x, y,
event);
- if (unlink_event)
- {
- _gdk_event_queue_remove_link (display, event_link);
- g_list_free_1 (event_link);
- gdk_event_free (event);
- }
-
-
/* Store last pointer window and position/state */
display->pointer_info.toplevel_x = x;
@@ -7366,6 +7358,13 @@ _gdk_windowing_got_event (GdkDisplay *display,
if (pointer_window)
display->pointer_info.window_under_pointer = g_object_ref (pointer_window);
}
+
+ if (unlink_event)
+ {
+ _gdk_event_queue_remove_link (display, event_link);
+ g_list_free_1 (event_link);
+ gdk_event_free (event);
+ }
}
#define __GDK_WINDOW_C__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]