[mutter/wayland] wayland-surface: Destroy the right thing



commit d39baeb8ad860f76341015c3ea279ecde4c1a97f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Feb 17 12:51:44 2014 -0500

    wayland-surface: Destroy the right thing
    
    data is the wl_client, which we don't want to destroy. Destroy
    our XdgShell pointer instead.

 src/wayland/meta-wayland-surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index f19cc5c..a63bc92 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -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 *


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