From 458fe633df7827f5b74c034026b6b67045c1e610 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sat, 18 Nov 2017 14:04:20 -0500 Subject: [PATCH] data-device: fix memory leak --- types/wlr_data_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/wlr_data_device.c b/types/wlr_data_device.c index eb8a3503..6328fd09 100644 --- a/types/wlr_data_device.c +++ b/types/wlr_data_device.c @@ -645,6 +645,7 @@ static bool seat_client_start_drag(struct wlr_seat_client *client, } if (!drag->is_pointer_grab && !is_touch_grab) { + free(drag); return true; }