Fix retained object info leak.

Review URL: http://codereview.chromium.org/6813101

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7578 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
vitalyr@chromium.org 2011-04-12 05:08:13 +00:00
parent 13bfbe8226
commit d26ba633a8

View File

@ -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 @@ class ObjectGroup {
}
void Dispose() {
if (info_ != NULL) info_->Dispose();
free(this);
}