1From e19d2fbf2ccb95343dcb25cfe4c60457f4e9a249 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Thu, 3 Jan 2019 15:27:59 +0800
4Subject: [PATCH 04/17] qwayland-egl: Fix mali crash during exiting
5
6By adding the missing ~QWaylandEglPlatformIntegration() to call
7eglTerminate().
8
9Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
10---
11 .../platforms/qwayland-egl/qwaylandeglplatformintegration.h   | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/src/plugins/platforms/qwayland-egl/qwaylandeglplatformintegration.h b/src/plugins/platforms/qwayland-egl/qwaylandeglplatformintegration.h
15index f2c8a15..ac93756 100644
16--- a/src/plugins/platforms/qwayland-egl/qwaylandeglplatformintegration.h
17+++ b/src/plugins/platforms/qwayland-egl/qwaylandeglplatformintegration.h
18@@ -57,6 +57,10 @@ public:
19         m_client_buffer_integration->initialize(display());
20     }
21
22+    ~QWaylandEglPlatformIntegration() {
23+        delete m_client_buffer_integration;
24+    }
25+
26     QWaylandEglClientBufferIntegration *clientBufferIntegration() const override
27     { return m_client_buffer_integration; }
28
29--
302.20.1
31
32