[mutter] wayland: Don't leak an extra xdg_shell resource



commit 46b9984414f1268e67d3ca04e638d9dc8a6a4f8e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jul 17 17:41:06 2014 -0400

    wayland: Don't leak an extra xdg_shell resource
    
    No idea how this happened...

 src/wayland/meta-wayland-surface.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 9b07b90..bb05355 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]