[gtk+] Free event axes for double/triple click events.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Free event axes for double/triple click events.
- Date: Thu, 17 Feb 2011 19:46:14 +0000 (UTC)
commit 3f78b251b99f8bb301dae92ad94b6d1a6f66be96
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Feb 17 20:43:31 2011 +0100
Free event axes for double/triple click events.
The button event axes are copied over when synthesizing
these events, so free them as well in gdk_event_free().
gdk/gdkevents.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 64fc49f..5188e1e 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -632,6 +632,8 @@ gdk_event_free (GdkEvent *event)
break;
case GDK_BUTTON_PRESS:
+ case GDK_2BUTTON_PRESS:
+ case GDK_3BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
g_free (event->button.axes);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]