Skip to content

Commit 257c8b6

Browse files
committed
Fix destruction order.
1 parent 846c9e5 commit 257c8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/ev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2519,9 +2519,9 @@ static JanetEVGenericMessage janet_go_thread_subr(JanetEVGenericMessage args) {
25192519
args.argp = "failed to start thread";
25202520
}
25212521
}
2522+
janet_restore(&tstate);
25222523
janet_buffer_deinit(buffer);
25232524
janet_free(buffer);
2524-
janet_restore(&tstate);
25252525
janet_deinit();
25262526
return args;
25272527
}

0 commit comments

Comments
 (0)