Comment #4 on issue 2111 by [email protected]:
Isolate::EnsureDefaultIsolate leak
http://code.google.com/p/v8/issues/detail?id=2111
I'm using Windows, so not sure if it is windows specific.
Test app:
#include <crtdbg.h>
#include <v8.h>
#include <vld.h> // Visual Leak Detector: http://vld.codeplex.com/
int _tmain(int argc, _TCHAR* argv[])
{
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
v8::V8::Dispose();
return 0;
}
Note: calling v8::v8::Initialize() before v8::V8::Dispose() results in less
leaks, but it still leaks, mainly because 'has_been_set_up_' is false in
V8::TearDown when Initialize has not been called.
Call-stacks for the leaks in the case with/without V8::Initialize() are
attached.
Attachments:
v8-leak-init.txt 15.8 KB
v8-leak-noinit.txt 191 KB
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev