data-device: fix memory leak

master
Tony Crisci 7 years ago
parent f17c3947ea
commit 458fe633df

@ -645,6 +645,7 @@ static bool seat_client_start_drag(struct wlr_seat_client *client,
} }
if (!drag->is_pointer_grab && !is_touch_grab) { if (!drag->is_pointer_grab && !is_touch_grab) {
free(drag);
return true; return true;
} }

Loading…
Cancel
Save