Skip to content

Commit

Permalink
Cleanup thread resources when lua/duktape async event helper ends (#3409
Browse files Browse the repository at this point in the history
)
  • Loading branch information
atoppi committed Sep 4, 2024
1 parent 6bb8b66 commit 870c257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/janus_duktape.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ static void *janus_duktape_async_event_helper(void *data) {
g_free(asev->transaction);
janus_refcount_decrease(&asev->session->ref);
g_free(asev);
g_thread_unref(g_thread_self());
return NULL;
}

Expand Down
1 change: 1 addition & 0 deletions plugins/janus_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ static void *janus_lua_async_event_helper(void *data) {
g_free(asev->transaction);
janus_refcount_decrease(&asev->session->ref);
g_free(asev);
g_thread_unref(g_thread_self());
return NULL;
}

Expand Down

0 comments on commit 870c257

Please sign in to comment.