From af8369c4080b42d9a2ad525b1443583ea3dfb8ba Mon Sep 17 00:00:00 2001 From: Hosung Kim Date: Mon, 15 Apr 2024 17:34:44 +0900 Subject: [PATCH] fix: fix g_source_unref use MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hosung Kim hs852.kim@samsung.com --- deps/node-bindings/src/gmainloop_node_bindings.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/node-bindings/src/gmainloop_node_bindings.cc b/deps/node-bindings/src/gmainloop_node_bindings.cc index 95a3bcb3c7..47a6fd5320 100644 --- a/deps/node-bindings/src/gmainloop_node_bindings.cc +++ b/deps/node-bindings/src/gmainloop_node_bindings.cc @@ -96,7 +96,6 @@ void GmainLoopInit(GmainLoopNodeBindings* self) { ((SourceData*)uvsource)->node_bindings = self; g_source_attach(uvsource, gcontext); - g_source_unref(uvsource); } void GmainLoopStart() { @@ -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);