[qet] [3315] fix memory leak |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3315
Author: blacksun
Date: 2014-09-20 19:58:00 +0200 (Sat, 20 Sep 2014)
Log Message:
-----------
fix memory leak
Modified Paths:
--------------
trunk/sources/qetapp.cpp
Modified: trunk/sources/qetapp.cpp
===================================================================
--- trunk/sources/qetapp.cpp 2014-09-19 10:22:57 UTC (rev 3314)
+++ trunk/sources/qetapp.cpp 2014-09-20 17:58:00 UTC (rev 3315)
@@ -132,6 +132,7 @@
QETApp::~QETApp() {
elements_recent_files_ -> save();
projects_recent_files_ -> save();
+ delete splash_screen_;
delete elements_recent_files_;
delete projects_recent_files_;
if (about_dialog_) {
@@ -1344,7 +1345,7 @@
*/
void QETApp::initSplashScreen() {
if (non_interactive_execution_) return;
- splash_screen_ = new QSplashScreen(QPixmap(":/ico/splash.png"));
+ splash_screen_ = new QSplashScreen(QPixmap(":/ico/splash.png"), Qt::WindowStaysOnTopHint);
splash_screen_ -> show();
setSplashScreenStep(tr("Chargement...", "splash screen caption"));
}