From: Tiago Vignatti <tiago.vigna...@intel.com>

I caught this when an evdev device fd was trying to trigger the main event
loop, which was already free'd and causing an invalid read.

Signed-off-by: Tiago Vignatti <tiago.vigna...@intel.com>
---
 compositor/compositor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/compositor/compositor.c b/compositor/compositor.c
index fc75689..a87c658 100644
--- a/compositor/compositor.c
+++ b/compositor/compositor.c
@@ -2092,9 +2092,9 @@ int main(int argc, char *argv[])
 
        if (ec->has_bind_display)
                ec->unbind_display(ec->display, display);
-       wl_display_destroy(display);
 
        ec->destroy(ec);
+       wl_display_destroy(display);
 
        return 0;
 }
-- 
1.7.5.4

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to