fixed memory corruption

This commit is contained in:
fourtf
2018-09-17 12:51:16 +02:00
parent 1d097c3344
commit 47c93fb118
6 changed files with 17 additions and 18 deletions
+6 -6
View File
@@ -81,7 +81,7 @@ void Application::initialize(Settings &settings, Paths &paths)
this->windows->updateWordTypeMask();
this->initNm();
this->initNm(paths);
this->initPubsub();
}
@@ -103,17 +103,17 @@ void Application::save()
}
}
void Application::initNm()
void Application::initNm(Paths &paths)
{
#ifdef Q_OS_WIN
# ifdef QT_DEBUG
# ifdef C_DEBUG_NM
this->nativeMessaging->registerHost();
this->nativeMessaging->openGuiMessageQueue();
registerNmHost(paths);
this->nmServer.start();
# endif
# else
this->nativeMessaging->registerHost();
this->nativeMessaging->openGuiMessageQueue();
registerNmHost(paths);
this->nmServer.start();
# endif
#endif
}