We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent def2409 commit 0430bacCopy full SHA for 0430bac
src/api/dispatcher_host.cc
@@ -60,9 +60,8 @@ DispatcherHost::~DispatcherHost() {
60
g_dispatcher_host_map.erase(render_view_host());
61
std::set<int>::iterator it;
62
for (it = objects_.begin(); it != objects_.end(); it++) {
63
- if (Base* obj = GetApiObject(*it)) {
64
- delete obj;
65
- }
+ if (objects_registry_.Lookup(*it))
+ objects_registry_.Remove(*it);
66
}
67
68
0 commit comments