Browse Source

Don't manually call destructors on v8js_globals.

v8js_globals is declared at the beginning of v8js.cc and hence
it's constructors and destructors are run automatically.
Stefan Siegl 11 năm trước cách đây
mục cha
commit
16934c2254
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      v8js.cc

+ 2 - 0
v8js.cc

@@ -1729,9 +1729,11 @@ static PHP_GSHUTDOWN_FUNCTION(v8js)
 		v8js_globals->v8_flags = NULL;
 	}
 
+#if 0
 	v8js_globals->timer_stack.~stack();
 	v8js_globals->timer_mutex.~mutex();
 	v8js_globals->modules_loaded.~map();
+#endif
 }
 /* }}} */