summaryrefslogtreecommitdiffstats
path: root/src/libs/client/Store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client/Store.cpp')
-rw-r--r--src/libs/client/Store.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp
index c0bc1a31..df0bdd95 100644
--- a/src/libs/client/Store.cpp
+++ b/src/libs/client/Store.cpp
@@ -211,7 +211,12 @@ Store::add_plugin(CountedPtr<PluginModel> pm)
void
Store::destruction_event(const Path& path)
{
- remove_object(path);
+ CountedPtr<ObjectModel> removed = remove_object(path);
+ removed->controller().reset();
+ cerr << "Store removed object " << path
+ << " controller count: " << removed->controller().use_count();
+ removed.reset();
+ cerr << ", model count: " << removed.use_count() << endl;
}
void