Merge pull request #3100 from jolange/fix3086
free last_motion_notify before returning
This commit is contained in:
commit
320246ab47
|
@ -747,8 +747,10 @@ static void xcb_drag_prepare_cb(EV_P_ ev_prepare *w, int revents) {
|
||||||
if (last_motion_notify != (xcb_motion_notify_event_t *)event)
|
if (last_motion_notify != (xcb_motion_notify_event_t *)event)
|
||||||
free(event);
|
free(event);
|
||||||
|
|
||||||
if (dragloop->result != DRAGGING)
|
if (dragloop->result != DRAGGING) {
|
||||||
|
free(last_motion_notify);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (last_motion_notify == NULL)
|
if (last_motion_notify == NULL)
|
||||||
|
|
Loading…
Reference in New Issue