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 5ba57e4 commit 9d360ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/janus_duktape.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,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 src/plugins/janus_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,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 9d360ca

Please sign in to comment.