Commit 4183f038 authored by ulan@chromium.org's avatar ulan@chromium.org

Fix memory leak in DeoptimizerData.

R=mstarzinger@chromium.org

Review URL: https://chromiumcodereview.appspot.com/11269035

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12809 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent b2d41f8f
......@@ -62,6 +62,13 @@ DeoptimizerData::~DeoptimizerData() {
lazy_deoptimization_entry_code_);
lazy_deoptimization_entry_code_ = NULL;
}
DeoptimizingCodeListNode* current = deoptimizing_code_list_;
while (current != NULL) {
DeoptimizingCodeListNode* prev = current;
current = current->next();
delete prev;
}
deoptimizing_code_list_ = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment