[mutter/wip/dnd-actions: 3/3] wayland: Fix c&p typo



commit 71a0e7171df7ac5ac6196efd902c54a790c3a334
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Apr 7 16:02:44 2015 +0200

    wayland: Fix c&p typo
    
    We're looking up the parent struct from the wrong field, this causes
    invalid memory access if the icon happens to be destroyed.

 src/wayland/meta-wayland-data-device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-data-device.c b/src/wayland/meta-wayland-data-device.c
index d0689fb..c631441 100644
--- a/src/wayland/meta-wayland-data-device.c
+++ b/src/wayland/meta-wayland-data-device.c
@@ -536,7 +536,7 @@ static void
 destroy_data_device_icon (struct wl_listener *listener, void *data)
 {
   MetaWaylandDragGrab *drag_grab =
-    wl_container_of (listener, drag_grab, drag_data_source_listener);
+    wl_container_of (listener, drag_grab, drag_icon_listener);
 
   drag_grab->drag_surface = NULL;
 


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