mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Fix destruction order.
This commit is contained in:
parent
846c9e5e12
commit
257c8b65c2
@ -2519,9 +2519,9 @@ static JanetEVGenericMessage janet_go_thread_subr(JanetEVGenericMessage args) {
|
||||
args.argp = "failed to start thread";
|
||||
}
|
||||
}
|
||||
janet_restore(&tstate);
|
||||
janet_buffer_deinit(buffer);
|
||||
janet_free(buffer);
|
||||
janet_restore(&tstate);
|
||||
janet_deinit();
|
||||
return args;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user