mirror of
https://github.com/janet-lang/janet
synced 2025-09-09 06:16:08 +00:00
Fix destruction order.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user