diff options
Diffstat (limited to 'src/progs/ingenuity/PatchCanvas.cpp')
-rw-r--r-- | src/progs/ingenuity/PatchCanvas.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/progs/ingenuity/PatchCanvas.cpp b/src/progs/ingenuity/PatchCanvas.cpp index 5dc39a2b..9419b252 100644 --- a/src/progs/ingenuity/PatchCanvas.cpp +++ b/src/progs/ingenuity/PatchCanvas.cpp @@ -103,8 +103,7 @@ PatchCanvas::build_canvas() { // Create pseudo modules for ports (ports on this canvas, not on our module) for (PortModelList::const_iterator i = m_patch->ports().begin(); i != m_patch->ports().end(); ++i) { - cerr << "FIXME: PORT MODULE LEAK!" << endl; - new PatchPortModule(this, *i); + manage(new PatchPortModule(this, *i)); } // Create connections @@ -118,13 +117,11 @@ PatchCanvas::build_canvas() { void PatchCanvas::add_node(CountedPtr<NodeModel> nm) { - cerr << "FIXME: MODULE LEAK!" << endl; - CountedPtr<PatchModel> pm = PtrCast<PatchModel>(nm); if (pm) - new SubpatchModule(this, pm); + manage(new SubpatchModule(this, pm)); else - new NodeModule(this, nm); + manage(new NodeModule(this, nm)); } @@ -139,9 +136,7 @@ PatchCanvas::remove_node(CountedPtr<NodeModel> nm) void PatchCanvas::add_port(CountedPtr<PortModel> pm) { - cerr << "FIXME: PORT MODULE LEAK!" << endl; - - new PatchPortModule(this, pm); + manage(new PatchPortModule(this, pm)); } |