]> git.sur5r.net Git - i3/i3/commitdiff
free last_motion_notify before returning 3100/head
authorJohannes Lange <johannes.lange@rwth-aachen.de>
Sun, 24 Dec 2017 08:40:23 +0000 (09:40 +0100)
committerJohannes Lange <johannes.lange@rwth-aachen.de>
Sun, 24 Dec 2017 08:44:52 +0000 (09:44 +0100)
fixes #3086

src/floating.c

index e2e9d85afa3a8bffdc6e3b71ddaec985276edeb3..85bd8cc051370dc0f3d95f3922df50212425b1cb 100644 (file)
@@ -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)