summaryrefslogtreecommitdiff
path: root/gdk/gdkevents.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2011-02-24 17:38:40 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2011-02-25 09:13:35 +0100
commit651410fa2a2c9c1e390ecbe384ea259f9bd319c8 (patch)
treef4e01be7811620c8910c40f54fd3fda4268ada7e /gdk/gdkevents.c
parent6c4196e9e4b66aef4054cca0597f9799654ae43a (diff)
downloadgtk+-651410fa2a2c9c1e390ecbe384ea259f9bd319c8.tar.gz
Copy event axes for double/triple click events in gdk_event_copy()
Button event axes for double/triple click events are freed by gdk_event_free(), so copy them to avoid an invalid free when releasing a copied event.
Diffstat (limited to 'gdk/gdkevents.c')
-rw-r--r--gdk/gdkevents.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 5188e1ec9d..25853da3af 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -555,6 +555,8 @@ gdk_event_copy (const GdkEvent *event)
break;
case GDK_BUTTON_PRESS:
+ case GDK_2BUTTON_PRESS:
+ case GDK_3BUTTON_PRESS:
case GDK_BUTTON_RELEASE:
if (event->button.axes)
new_event->button.axes = g_memdup (event->button.axes,