From 489b279be992fec30d23076db23b4ec131aef197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 25 Jun 2013 11:26:31 -0400 Subject: [PATCH] data-device: Don't leak wl_data_source in destructor We used to refcount the data source, but switched to using a destroy signal instead. When we switched we forgot to free the source insted of unreffing it. --- src/data-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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