Commit 56c84f3d authored by Gaël de Chalendar's avatar Gaël de Chalendar
Browse files

try to remove a memory leak reported by valgrind

svn path=/trunk/KDE/kdegames/ksirk/; revision=905213
parent 7ea5ca30
......@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
KApplication app;
KGlobal::locale()->insertCatalog("libkdegames");
if (app.isSessionRestored())
{
RESTORE(Ksirk::KGameWindow);
......@@ -70,5 +70,7 @@ int main(int argc, char *argv[])
args->clear();
}
kDebug() << "Executing app";
return app.exec();
int res = app.exec();
KGlobal::locale()->removeCatalog( "libkdegames" );
return res;
}
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