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

Unified Diff: chrome/browser/component_updater/component_updater_service_unittest.cc

Issue 7565002: Fix memory errors in ComponentUpdater::ComponentUpdater(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 | « chrome/browser/component_updater/component_unpacker.cc ('k') | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/component_updater_service_unittest.cc
===================================================================
--- chrome/browser/component_updater/component_updater_service_unittest.cc (revision 95372)
+++ chrome/browser/component_updater/component_updater_service_unittest.cc (working copy)
@@ -8,6 +8,7 @@
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h"
+#include "base/values.h"
#include "chrome/browser/component_updater/component_updater_interceptor.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_notification_types.h"
@@ -74,6 +75,7 @@
virtual bool Install(base::DictionaryValue* manifest,
const FilePath& unpack_path) OVERRIDE {
++install_count_;
+ delete manifest;
return file_util::Delete(unpack_path, true);
}
@@ -292,4 +294,3 @@
delete com2.installer;
xmlCleanupGlobals();
}
-
« no previous file with comments | « chrome/browser/component_updater/component_unpacker.cc ('k') | tools/heapcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698