Fix editor crash in multithreaded mode
This commit is contained in:
parent
e9d73d8ec4
commit
db4bb91765
2 changed files with 3 additions and 2 deletions
|
|
@ -867,7 +867,8 @@ proc godot_gdnative_init(options: ptr GDNativeInitOptions) {.
|
|||
|
||||
proc godot_gdnative_terminate(options: ptr GDNativeTerminateOptions) {.
|
||||
cdecl, exportc, dynlib.} =
|
||||
deallocHeap(runFinalizers = not options[].inEditor, allowGcAfterwards = false)
|
||||
if not options[].inEditor or not compileOption("threads"):
|
||||
deallocHeap(runFinalizers = not options[].inEditor, allowGcAfterwards = false)
|
||||
|
||||
const nimGcStepLengthUs {.intdefine.} = 2000
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue