free xdg-shell data for xdg5 surfaces

This commit is contained in:
Mike Blumenkrantz 2016-12-01 12:13:57 -05:00
parent 8173c06c4d
commit cd4c3ecc5d
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ e_shell_surface_destroy(struct wl_resource *resource)
if (shd)
{
E_FREE_LIST(shd->pending, free);
if (resource == shd->surface)
if ((resource == shd->surface) || (!shd->surface))
E_FREE(ec->comp_data->shell.data);
}