Fixed code style #4901

This commit is contained in:
Xinyu Hou 2015-07-29 15:03:35 -07:00 committed by Jerry (Xinyu Hou)
parent 67fbecb825
commit 08effbcf99
1 changed files with 2 additions and 1 deletions

View File

@ -764,8 +764,9 @@ void MainWindow::stopDesktop()
appendLogInfo("stopping synergy desktop process");
if (synergyProcess()->isOpen())
if (synergyProcess()->isOpen()) {
synergyProcess()->close();
}
delete synergyProcess();
setSynergyProcess(NULL);