Skip to content

Commit

Permalink
fix: fix g_source_unref use
Browse files Browse the repository at this point in the history
Signed-off-by: Hosung Kim [email protected]
  • Loading branch information
hs0225 committed Apr 15, 2024
1 parent a72232c commit 5117b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/node-bindings/src/gmainloop_node_bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ void GmainLoopInit(GmainLoopNodeBindings* self) {
((SourceData*)uvsource)->node_bindings = self;

g_source_attach(uvsource, gcontext);
g_source_unref(uvsource);
}

void GmainLoopStart() {
Expand All @@ -111,6 +110,7 @@ void GmainLoopStart() {
void GmainLoopExit() {
if (uvsource) {
g_source_destroy(uvsource);
g_source_unref(uvsource);
}
if (gmainLoop) {
g_main_loop_unref(gmainLoop);
Expand Down

0 comments on commit 5117b78

Please sign in to comment.