Revision: 7578
Author:   [email protected]
Date:     Mon Apr 11 22:08:13 2011
Log:      Fix retained object info leak.

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

Modified:
 /branches/bleeding_edge/src/global-handles.h

=======================================
--- /branches/bleeding_edge/src/global-handles.h        Thu Apr  7 09:10:56 2011
+++ /branches/bleeding_edge/src/global-handles.h        Mon Apr 11 22:08:13 2011
@@ -28,6 +28,8 @@
 #ifndef V8_GLOBAL_HANDLES_H_
 #define V8_GLOBAL_HANDLES_H_

+#include "../include/v8-profiler.h"
+
 #include "list-inl.h"

 namespace v8 {
@@ -57,6 +59,7 @@
   }

   void Dispose() {
+    if (info_ != NULL) info_->Dispose();
     free(this);
   }

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

Reply via email to