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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 10861018: Fix memory leaks from adding GPU memory to task manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 3b2014b0a7125cb2a51ec255ce577f40f07ac8c1..580a05c8a5a4d2ddf6900af256c2cf13d6299979 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -295,10 +295,12 @@ GpuProcessHost* GpuProcessHost::Get(GpuProcessKind kind,
void GpuProcessHost::SendOnIO(GpuProcessKind kind,
content::CauseForGpuLaunch cause,
IPC::Message* message) {
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- base::Bind(
- &SendGpuProcessMessage, kind, cause, message));
+ if (!BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
+ base::Bind(
+ &SendGpuProcessMessage, kind, cause, message))) {
ccameron 2012/08/20 21:20:02 Note that SendGpuProcessMessage will delete messag
+ delete message;
+ }
}
// static
« chrome/browser/task_manager/task_manager.h ('K') | « content/browser/gpu/gpu_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698