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

Unified Diff: src/log.cc

Issue 6347005: [Isolates] Fix memory leaks in Isolate and Logger. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/isolates
Patch Set: Created 9 years, 11 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 | « src/log.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log.cc
diff --git a/src/log.cc b/src/log.cc
index bd2823adb7835a6094cca564a551657fc4e389f5..fa6fe24234d835b900d3baf8b4d7c91088880955 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -348,6 +348,10 @@ Logger::Logger()
prev_code_(NULL) {
}
+Logger::~Logger() {
+ delete log_;
+}
+
#define DECLARE_LONG_EVENT(ignore1, long_name, ignore2) long_name,
static const char* const kLongLogEventsNames[Logger::NUMBER_OF_LOG_EVENTS] = {
LOG_EVENTS_AND_TAGS_LIST(DECLARE_LONG_EVENT)
« no previous file with comments | « src/log.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698