Browse Source

Delete V8JSG(timer_thread) on shutdown, refs #138

Stefan Siegl 10 years ago
parent
commit
4d17ba2566
1 changed files with 1 additions and 0 deletions
  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;
 	}