summaryrefslogtreecommitdiffstats
path: root/src/libs/client/Store.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-12 01:00:52 +0000
committerDavid Robillard <d@drobilla.net>2006-09-12 01:00:52 +0000
commit23b7568ab7a87a79c186b8ddf3d3db4f1f934b06 (patch)
tree84ac925d65c940cc42fc88219758d7fc096f9dd4 /src/libs/client/Store.cpp
parent16c866f220847ae23012318d2c1a5023076ab5fa (diff)
downloadingen-23b7568ab7a87a79c186b8ddf3d3db4f1f934b06.tar.gz
ingen-23b7568ab7a87a79c186b8ddf3d3db4f1f934b06.tar.bz2
ingen-23b7568ab7a87a79c186b8ddf3d3db4f1f934b06.zip
Bug fixes.
git-svn-id: http://svn.drobilla.net/lad/ingen@130 a436a847-0d15-0410-975c-d299462d15a1
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