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.
This commit is contained in:
Carlos Garcia Campos 2011-02-24 17:38:40 +01:00 committed by Carlos Garcia Campos
parent 6c4196e9e4
commit 651410fa2a

View File

@ -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,