From: Johannes Lange Date: Sun, 24 Dec 2017 08:40:23 +0000 (+0100) Subject: free last_motion_notify before returning X-Git-Tag: 4.15~24^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F3100%2Fhead;p=i3%2Fi3 free last_motion_notify before returning fixes #3086 --- diff --git a/src/floating.c b/src/floating.c index e2e9d85a..85bd8cc0 100644 --- a/src/floating.c +++ b/src/floating.c @@ -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) free(event); - if (dragloop->result != DRAGGING) + if (dragloop->result != DRAGGING) { + free(last_motion_notify); return; + } } if (last_motion_notify == NULL)