Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com>
---
 src/waffle/android/droid_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/waffle/android/droid_display.c 
b/src/waffle/android/droid_display.c
index 3f39739..6e66d17 100644
--- a/src/waffle/android/droid_display.c
+++ b/src/waffle/android/droid_display.c
@@ -72,10 +72,10 @@ droid_display_disconnect(struct wcore_display *wc_self)
     if (!self)
         return true;
 
+    ok &= wegl_display_teardown(&self->wegl);
     if (self->pSFContainer)
         droid_deinit_gl(self->pSFContainer);
 
-    ok &= wegl_display_teardown(&self->wegl);
     free(self);
     return ok;
 }
-- 
2.8.0

_______________________________________________
waffle mailing list
waffle@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/waffle

Reply via email to