summaryrefslogtreecommitdiff
path: root/src/spawn.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-31 05:58:41 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:45:01 -0500
commit72dd230cdc60e74446caceb5cfb4c6d32e4f6f68 (patch)
tree00544a8dccc5b6862eeab41aff652855fa48befa /src/spawn.cpp
parent719a2f20b4bb6b722097b63df8468d073d67e65f (diff)
removed unused files
fixed handle leak when starting steam
Diffstat (limited to 'src/spawn.cpp')
-rw-r--r--src/spawn.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/spawn.cpp b/src/spawn.cpp
index b331db01..62745542 100644
--- a/src/spawn.cpp
+++ b/src/spawn.cpp
@@ -27,8 +27,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "envmodule.h"
#include "settings.h"
#include "settingsdialogworkarounds.h"
-#include <iplugingame.h>
-#include <ilockedwaitingforprocess.h>
#include <errorcodes.h>
#include <report.h>
#include <log.h>
@@ -645,6 +643,7 @@ bool startSteam(QWidget* parent)
HANDLE ph = INVALID_HANDLE_VALUE;
const auto e = spawn(sp, ph);
+ ::CloseHandle(ph);
if (e != ERROR_SUCCESS) {
// make sure username and passwords are not shown