1
0
Fork 0

wayland-surface: Destroy the right thing

data is the wl_client, which we don't want to destroy. Destroy
our XdgShell pointer instead.
This commit is contained in:
Jasper St. Pierre 2014-02-17 12:51:44 -05:00
parent f27f6aab78
commit d39baeb8ad

View file

@ -1074,7 +1074,7 @@ static void
xdg_shell_handle_client_destroy (struct wl_listener *listener, void *data)
{
XdgShell *xdg_shell = wl_container_of (listener, xdg_shell, client_destroy_listener);
g_slice_free (XdgShell, data);
g_slice_free (XdgShell, xdg_shell);
}
static struct wl_resource *