mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-16 16:15:38 +02:00
Revert "created new instance of arch in plugin #4313"
This reverts commit 8e4f758cb1
.
This commit is contained in:
parent
9f1255d986
commit
4014176d8e
7 changed files with 13 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue