Commit 3ab6ed77 authored by Jan Möbius's avatar Jan Möbius

Delete variables if not used



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6926 383ad7c9-94d9-4d36-a494-682f7c89f535
parent db8371c1
......@@ -315,8 +315,10 @@ int main(int argc, char **argv)
// create core ( this also reads the ini files )
Core * w = new Core( );
if ( !parseCommandLineOptions(args) )
if ( !parseCommandLineOptions(args) ) {
delete w;
return 1;
}
QString tLang = OpenFlipper::Options::translation();
......@@ -354,6 +356,8 @@ int main(int argc, char **argv)
// std::cerr << "Loaded " << fileInfo.fileName().toStdString() << std::endl;
app.installTranslator(myAppTranslator);
} else {
delete myAppTranslator;
}
}
}
......@@ -381,8 +385,10 @@ int main(int argc, char **argv)
// create widget ( this also reads the ini files )
Core * w = new Core( );
if ( !parseCommandLineOptions(args) )
if ( !parseCommandLineOptions(args) ) {
delete w;
return 1;
}
// After setting all Options from command line, build the real gui
w->init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment