mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
gesture-action: fix memory corruption
abcf1d589f
introduced a crasher because
the 'point' variable points to a piece of memory that is being
reallocated by the begin_gesture (by a g_array_set_size) call 5 lines
before.
https://bugzilla.gnome.org/show_bug.cgi?id=710227
This commit is contained in:
parent
cbb9d1e062
commit
97724939c8
@ -398,9 +398,13 @@ stage_captured_event_cb (ClutterActor *stage,
|
|||||||
|
|
||||||
if (!begin_gesture (action, actor))
|
if (!begin_gesture (action, actor))
|
||||||
{
|
{
|
||||||
|
if ((point = gesture_find_point (action, event, &position)) != NULL)
|
||||||
gesture_update_motion_point (point, event);
|
gesture_update_motion_point (point, event);
|
||||||
return CLUTTER_EVENT_PROPAGATE;
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((point = gesture_find_point (action, event, &position)) == NULL)
|
||||||
|
return CLUTTER_EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gesture_update_motion_point (point, event);
|
gesture_update_motion_point (point, event);
|
||||||
|
Loading…
Reference in New Issue
Block a user