[mutter/wayland] wayland-surface: Unref the buffer after removing the destroy listener



commit 44580ddb80e292d61f856ace0326ff6e3f99e3f3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Mar 25 11:59:16 2014 -0400

    wayland-surface: Unref the buffer after removing the destroy listener

 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 739c171..39239ef 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -83,8 +83,8 @@ surface_set_buffer (MetaWaylandSurface *surface,
 
   if (surface->buffer)
     {
-      meta_wayland_buffer_unref (surface->buffer);
       wl_list_remove (&surface->buffer_destroy_listener.link);
+      meta_wayland_buffer_unref (surface->buffer);
     }
 
   surface->buffer = buffer;


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