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

Unified Diff: sandbox/win/tests/common/controller.cc

Issue 2316333003: Fix sandbox::PolicyBase leak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: switch back to start with refcount 1 Created 4 years, 3 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 | « sandbox/win/tests/common/controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/tests/common/controller.cc
diff --git a/sandbox/win/tests/common/controller.cc b/sandbox/win/tests/common/controller.cc
index 9f57137c0e7d31844d75addb1590bd7080f6c476..2067d2d9e01958ca48543448c40fb52e0322dca1 100644
--- a/sandbox/win/tests/common/controller.cc
+++ b/sandbox/win/tests/common/controller.cc
@@ -136,15 +136,12 @@ void TestRunner::Init(JobLevel job_level,
}
TargetPolicy* TestRunner::GetPolicy() {
- return policy_;
+ return policy_.get();
}
TestRunner::~TestRunner() {
if (target_process_.IsValid() && kill_on_destruction_)
::TerminateProcess(target_process_.Get(), 0);
-
- if (policy_)
- policy_->Release();
}
bool TestRunner::AddRule(TargetPolicy::SubSystem subsystem,
« no previous file with comments | « sandbox/win/tests/common/controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698