diff --git a/src/data-device.c b/src/data-device.c index 6e6e7f26..bb1dc75f 100644 --- a/src/data-device.c +++ b/src/data-device.c @@ -502,7 +502,7 @@ destroy_data_source(struct wl_resource *resource) wl_array_release(&source->mime_types); - source->resource = NULL; + free(source); } static void