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.
This commit is contained in:
parent
f00460771e
commit
489b279be9
|
@ -502,7 +502,7 @@ destroy_data_source(struct wl_resource *resource)
|
|||
|
||||
wl_array_release(&source->mime_types);
|
||||
|
||||
source->resource = NULL;
|
||||
free(source);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue