summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-07-17 17:41:06 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2014-07-17 17:47:10 -0400
commit46b9984414f1268e67d3ca04e638d9dc8a6a4f8e (patch)
treeb4d8310820af463b44fc3c18ac974445033cd957
parentf9743e2174ca1a4cb6f5089067e6ad58729c0524 (diff)
downloadmutter-46b9984414f1268e67d3ca04e638d9dc8a6a4f8e.tar.gz
wayland: Don't leak an extra xdg_shell resource
No idea how this happened...
-rw-r--r--src/wayland/meta-wayland-surface.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 9b07b903e..bb05355e9 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -1116,7 +1116,6 @@ bind_xdg_shell (struct wl_client *client,
guint32 version,
guint32 id)
{
- struct wl_resource *resource;
XdgShell *xdg_shell;
if (version != 1)
@@ -1127,8 +1126,6 @@ bind_xdg_shell (struct wl_client *client,
xdg_shell = g_slice_new (XdgShell);
- resource = wl_resource_create (client, &xdg_shell_interface, 1, id);
- wl_resource_set_implementation (resource, &meta_wayland_xdg_shell_interface, data, NULL);
xdg_shell->resource = wl_resource_create (client, &xdg_shell_interface, 1, id);
wl_resource_set_implementation (xdg_shell->resource, &meta_wayland_xdg_shell_interface, data, NULL);