Przeglądaj źródła

Delete V8JSG(timer_thread) on shutdown, refs #138

Stefan Siegl 10 lat temu
rodzic
commit
4d17ba2566
1 zmienionych plików z 1 dodań i 0 usunięć
  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;
 	}