summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/NodeController.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/progs/ingenuity/NodeController.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/progs/ingenuity/NodeController.cpp')
-rw-r--r--src/progs/ingenuity/NodeController.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/progs/ingenuity/NodeController.cpp b/src/progs/ingenuity/NodeController.cpp
index 641d975e..950f70c9 100644
--- a/src/progs/ingenuity/NodeController.cpp
+++ b/src/progs/ingenuity/NodeController.cpp
@@ -104,8 +104,10 @@ void
NodeController::destroy()
{
cerr << "FIXME: NODE DESTROYED\n";
- destroy_module(); // cuts reference
- //delete this;
+ destroy_module();
+ CountedPtr<ObjectModel> model = m_model;
+ m_model->controller().reset();
+ m_model.reset();
}