diff options
author | GiWoong Kim <giwoong.kim@samsung.com> | 2015-10-26 11:40:16 +0900 |
---|---|---|
committer | SeokYeon Hwang <syeon.hwang@samsung.com> | 2015-10-29 19:49:31 +0900 |
commit | 40802012a9069f4bcce4e330ad637ad244184fa6 (patch) | |
tree | 94d59157ddcb2e1aee9556a3ff724f41daa15fdd /tizen/src/ui/qt5_supplement.cpp | |
parent | 8dcbe5275f28ca9f9a2efcd3f31789ef2a43c37c (diff) | |
download | qemu-40802012a9069f4bcce4e330ad637ad244184fa6.tar.gz qemu-40802012a9069f4bcce4e330ad637ad244184fa6.tar.bz2 qemu-40802012a9069f4bcce4e330ad637ad244184fa6.zip |
ui: initialize class-member variables
1. initialize class-member variables
2. delete unnecessary null checking
Change-Id: Ie20dfc5789f7d9be8cb08487c7bfe460507bcb2c
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
Diffstat (limited to 'tizen/src/ui/qt5_supplement.cpp')
-rw-r--r-- | tizen/src/ui/qt5_supplement.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tizen/src/ui/qt5_supplement.cpp b/tizen/src/ui/qt5_supplement.cpp index 184e8b91c3..3bc303a376 100644 --- a/tizen/src/ui/qt5_supplement.cpp +++ b/tizen/src/ui/qt5_supplement.cpp @@ -299,16 +299,14 @@ void qt5_destroy() qt5App->processEvents(QEventLoop::ExcludeUserInputEvents); qt5App->quit(); - if (mainwindow) { -// FIXME: It causes SIGSEGV now... -// delete mainwindow; - mainwindow = NULL; - } +#if 0 + //FIXME: It causes SIGSEGV now... + delete mainwindow; + mainwindow = NULL; +#endif - if (uiInfo) { - delete uiInfo; - uiInfo = NULL; - } + delete uiInfo; + uiInfo = NULL; } void qt5_early_prepare(bool isOnscreen) |