Index: mojo/common/weak_binding_set.h |
diff --git a/mojo/common/weak_binding_set.h b/mojo/common/weak_binding_set.h |
index a94e8f4adb05570607647543a39ab10344ccb334..7696c82c280487e266c520b6bd9f3fc245cd131b 100644 |
--- a/mojo/common/weak_binding_set.h |
+++ b/mojo/common/weak_binding_set.h |
@@ -36,8 +36,10 @@ class WeakBindingSet { |
void CloseAllBindings() { |
for (const auto& it : bindings_) { |
- if (it) |
+ if (it) { |
it->Close(); |
+ delete it.get(); |
+ } |
} |
bindings_.clear(); |
} |