mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +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";
|
args.argp = "failed to start thread";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
janet_restore(&tstate);
|
||||||
janet_buffer_deinit(buffer);
|
janet_buffer_deinit(buffer);
|
||||||
janet_free(buffer);
|
janet_free(buffer);
|
||||||
janet_restore(&tstate);
|
|
||||||
janet_deinit();
|
janet_deinit();
|
||||||
return args;
|
return args;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user