1
0
Fork 0

fixed buffer leaks

This commit is contained in:
Jan Steemann 2016-04-22 17:33:13 +02:00
parent f2824496fc
commit c7247a64c3
1 changed files with 14 additions and 0 deletions

View File

@ -138,6 +138,20 @@ void V8ShellFeature::start() {
void V8ShellFeature::stop() {
LOG_TOPIC(TRACE, Logger::STARTUP) << name() << "::stop";
{
v8::Locker locker{_isolate};
v8::Isolate::Scope isolate_scope(_isolate);
v8::HandleScope handle_scope(_isolate);
v8::Local<v8::Context> context =
v8::Local<v8::Context>::New(_isolate, _context);
v8::Context::Scope context_scope{context};
TRI_RunGarbageCollectionV8(_isolate, 2500.0);
}
{
v8::Locker locker{_isolate};