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

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

Issue 7748029: Fix a memory leak in GpuBlacklist. (Closed) Base URL: svn://chrome-svn/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 | « content/browser/gpu/gpu_blacklist.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_blacklist.cc
===================================================================
--- content/browser/gpu/gpu_blacklist.cc (revision 98162)
+++ content/browser/gpu/gpu_blacklist.cc (working copy)
@@ -207,7 +207,7 @@
}
// static
-GpuBlacklist::GpuBlacklistEntry*
+GpuBlacklist::ScopedGpuBlacklistEntry
GpuBlacklist::GpuBlacklistEntry::GetGpuBlacklistEntryFromValue(
DictionaryValue* value, bool top_level) {
DCHECK(value);
@@ -420,7 +420,7 @@
LOG(WARNING) << "Entry with unknown fields " << entry->id();
entry->contains_unknown_fields_ = true;
}
- return entry.release();
+ return entry;
}
GpuBlacklist::GpuBlacklistEntry::GpuBlacklistEntry()
@@ -527,7 +527,7 @@
}
void GpuBlacklist::GpuBlacklistEntry::AddException(
- GpuBlacklistEntry* exception) {
+ ScopedGpuBlacklistEntry exception) {
exceptions_.push_back(exception);
}
« no previous file with comments | « content/browser/gpu/gpu_blacklist.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698