fix memory leak

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3315 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-09-20 17:58:00 +00:00
parent 54eab1f1b4
commit 01f1bc8dd1

View File

@@ -132,6 +132,7 @@ QETApp::QETApp(int &argc, char **argv) :
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::parseArguments() {
*/
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"));
}