From 98a6b0421a1799ff546bdf4b241c6a73b87ddefa Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Mon, 22 May 2017 22:41:38 +0100 Subject: [PATCH] Delete temporary config files on platforms other than Windows --- src/gui/src/MainWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 33806cb8..a55502dd 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -830,7 +830,9 @@ void MainWindow::stopSynergy() // HACK: deleting the object deletes the physical file, which is // bad, since it could be in use by the Windows service! - //delete m_pTempConfigFile; +#if !defined(Q_OS_WIN) + delete m_pTempConfigFile; +#endif m_pTempConfigFile = NULL; // reset so that new connects cause auto-hide.