Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1397)

Unified Diff: src/isolate.cc

Issue 7660016: Fix memory leaks in ~Zone and ~Isolate (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/serialize.h » ('j') | src/zone.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 9ca61177ba7b41914987dbf0aaba503b50ab2773..cf693e088ae43621db8de9c0097c5ebd349419a2 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -1591,6 +1591,11 @@ Isolate::~Isolate() {
delete global_handles_;
global_handles_ = NULL;
+ if (external_reference_table_ != NULL) {
Vitaly Repeshko 2011/08/16 17:52:32 It's safe to delete NULL. "if" is not necessary.
Jakob Kummerow 2011/08/17 08:47:30 Done.
+ delete external_reference_table_;
+ external_reference_table_ = NULL;
+ }
+
#ifdef ENABLE_DEBUGGER_SUPPORT
delete debugger_;
debugger_ = NULL;
« no previous file with comments | « no previous file | src/serialize.h » ('j') | src/zone.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698