Skip to content

Commit

Permalink
Update reference count
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Aug 2, 2024
1 parent b818f4a commit 3a0a30f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bun.js/bindings/JSCTaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ class JSCDeferredWorkTask {
: ticket(ticket)
, task(WTFMove(task))
{
ticket->ref();
}

Ticket ticket;
Task task;
~JSCDeferredWorkTask()
{
ticket->deref();
}

WTF_MAKE_ISO_ALLOCATED(JSCDeferredWorkTask);
};
Expand Down

0 comments on commit 3a0a30f

Please sign in to comment.