Revision: 6092
Author: [email protected]
Date: Tue Dec 21 02:51:50 2010
Log: Fix leak of a global handle in Debug::Load().

Bootstrapper::CreateEnvironment() returns a global handle to the created context so there is no need to create another one explicitly.

BUG=v8:1006

Review URL: http://codereview.chromium.org/6048003
http://code.google.com/p/v8/source/detail?r=6092

Modified:
 /branches/bleeding_edge/src/debug.cc

=======================================
--- /branches/bleeding_edge/src/debug.cc        Tue Dec  7 03:31:57 2010
+++ /branches/bleeding_edge/src/debug.cc        Tue Dec 21 02:51:50 2010
@@ -858,7 +858,7 @@
   if (caught_exception) return false;

   // Debugger loaded.
-  debug_context_ = Handle<Context>::cast(GlobalHandles::Create(*context));
+  debug_context_ = context;

   return true;
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to