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.
Kristian Høgsberg 11 years ago
parent f00460771e
commit 489b279be9
  1. 2
      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

Loading…
Cancel
Save