Browse Source

fix: add uv_loop_close when object release to fix crash (#35338)

Co-authored-by: yangzuohui <[email protected]>
trop[bot] 2 years ago
parent
commit
534d313758
1 changed files with 1 additions and 0 deletions
  1. 1 0
      shell/common/node_bindings.cc

+ 1 - 0
shell/common/node_bindings.cc

@@ -135,6 +135,7 @@ void stop_and_close_uv_loop(uv_loop_t* loop) {
       break;
 
   DCHECK_EQ(0, uv_loop_alive(loop));
+  uv_loop_close(loop);
 }
 
 bool g_is_initialized = false;