Skip to content

Commit

Permalink
fix: prevent Argon from crashing on interpreter exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopodl committed Jul 26, 2023
1 parent 1e34266 commit 7a7b97c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions argon/vm/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,10 @@ void Scheduler(OSThread *self) {
assert(self->fiber->frame == nullptr);

PublishResult(self->fiber, result);

Release(result);

self->fiber = nullptr;
}

// Shutdown thread
Expand Down

0 comments on commit 7a7b97c

Please sign in to comment.