[waffle] [PATCH 7/8] android: teardown things in the correct order
Emil Velikov
emil.l.velikov at gmail.com
Tue Apr 5 22:52:24 UTC 2016
Signed-off-by: Emil Velikov <emil.l.velikov at 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
More information about the waffle
mailing list