Revert "wayland-surface: Allow extension resources to be double-destroyed"

This reverts commit 2ebecc5370.
This commit is contained in:
Jasper St. Pierre 2013-11-19 23:32:50 -05:00
parent 600a0f836f
commit a8632c2546

View File

@ -470,10 +470,6 @@ static void
destroy_surface_extension (struct wl_resource *resource)
{
MetaWaylandSurfaceExtension *extension = wl_resource_get_user_data (resource);
if (extension->resource == NULL)
return;
wl_list_remove (&extension->surface_destroy_listener.link);
extension->surface_destroy_listener.notify = NULL;
extension->resource = NULL;