Browse Source

Delete V8JSG(timer_thread) on shutdown, refs #138

Stefan Siegl 10 năm trước cách đây
mục cha
commit
4d17ba2566
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      v8js.cc

+ 1 - 0
v8js.cc

@@ -130,6 +130,7 @@ static PHP_RSHUTDOWN_FUNCTION(v8js)
 		V8JSG(timer_stop) = true;
 		V8JSG(timer_thread)->join();
 		V8JSG(timer_stop) = false;
+		delete V8JSG(timer_thread);
 		V8JSG(timer_thread) = NULL;
 	}