wayland-surface: Properly destroy extension resources on the destroy request

Otherwise, the resource IDs will linger around and be destroyed again
on client close...
This commit is contained in:
Jasper St. Pierre 2013-11-19 23:33:46 -05:00
parent a8632c2546
commit f4fc498e65

View File

@ -518,7 +518,7 @@ static void
xdg_surface_destroy (struct wl_client *client,
struct wl_resource *resource)
{
destroy_surface_extension (resource);
wl_resource_destroy (resource);
}
static void
@ -756,7 +756,7 @@ static void
xdg_popup_destroy (struct wl_client *client,
struct wl_resource *resource)
{
destroy_surface_extension (resource);
wl_resource_destroy (resource);
}
static void