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

Unified Diff: dbus/object_manager.cc

Issue 1055713002: Fix memory leak in dbus::ObjectManager::RemoveInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/object_manager.cc
diff --git a/dbus/object_manager.cc b/dbus/object_manager.cc
index 181a73b3350109dd7b79b8c980d415acd762c0bf..851fee44b2e140b41c39b6bc8b190319252c6b08 100644
--- a/dbus/object_manager.cc
+++ b/dbus/object_manager.cc
@@ -482,6 +482,7 @@ void ObjectManager::RemoveInterface(const ObjectPath& object_path,
interface->ObjectRemoved(object_path, interface_name);
}
+ delete piter->second;
object->properties_map.erase(piter);
if (object->properties_map.empty()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698