ensure that Application is properly destroyed after at the end of LyX::priv_exec()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15326 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-10-13 19:45:10 +00:00
parent c5dd10f93e
commit a897cda71c

View File

@ -264,7 +264,12 @@ int LyX::priv_exec(int & argc, char * argv[])
theApp = 0;
}
return exec2(argc, argv);
int exit_status = exec2(argc, argv);
if (lyx::use_gui)
application_.reset();
return exit_status;
}