mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-25 21:33:20 +08:00
assigned arch static instance instead of create a new one #4313
This commit is contained in:
@@ -39,7 +39,7 @@ init(void* log, void* arch)
|
||||
}
|
||||
|
||||
if (g_arch == NULL) {
|
||||
g_arch = new Arch(reinterpret_cast<Arch*>(arch));
|
||||
Arch::setInstance(reinterpret_cast<Arch*>(arch));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user