summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-10-01 10:26:47 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-10-01 10:26:47 +0900
commit93b192770c2368c151af2054067d89669543abf6 (patch)
treef55ff29e280f9327f0846f478f8c1643f5247af3
parent744df8b7c6ccb4e2254e452eec82f5d0703417cf (diff)
Fix memory leak when application dead
To avoid memory leak after application is dead, delete AGLScreenInfoPrivate and LibWindowmanager object in destructor. Change-Id: Ic5022c66016ef9c96ba70aab3897e34b1faf4a9b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/qlibwindowmanager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qlibwindowmanager.cpp b/src/qlibwindowmanager.cpp
index df17f47..e0ea50b 100644
--- a/src/qlibwindowmanager.cpp
+++ b/src/qlibwindowmanager.cpp
@@ -155,4 +155,8 @@ QLibWindowmanager::QLibWindowmanager(QObject *parent)
wm = new LibWindowmanager();
}
-QLibWindowmanager::~QLibWindowmanager() { }
+QLibWindowmanager::~QLibWindowmanager()
+{
+ delete wm;
+ delete screen_info;
+} \ No newline at end of file