Revert "created new instance of arch in plugin #4313"

This reverts commit 8e4f758cb1.
This commit is contained in:
Xinyu Hou 2015-02-13 14:26:03 +00:00
parent 9f1255d986
commit 4014176d8e
7 changed files with 13 additions and 18 deletions

View file

@ -32,15 +32,14 @@ Log* g_log = NULL;
extern "C" {
void
init(void* log)
init(void* log, void* arch)
{
if (g_log == NULL) {
g_log = new Log(reinterpret_cast<Log*>(log));
}
if (g_arch == NULL) {
g_arch = new Arch();
g_arch->init();
g_arch = new Arch(reinterpret_cast<Arch*>(arch));
}
}
@ -101,10 +100,6 @@ cleanup()
if (g_secureListenSocket != NULL) {
delete g_secureListenSocket;
}
if (g_arch != NULL) {
delete g_arch;
}
}
}