summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-14 04:42:01 +0000
committerDavid Robillard <d@drobilla.net>2012-05-14 04:42:01 +0000
commit6781ef7daba03ce86bf71e41981b7f0eef8024ed (patch)
tree72a9dbf6144501979d61f82bdb93600cc2facf15
parent3ffc448198c364224d04db006abd843716adf32f (diff)
downloadingen-6781ef7daba03ce86bf71e41981b7f0eef8024ed.tar.gz
ingen-6781ef7daba03ce86bf71e41981b7f0eef8024ed.tar.bz2
ingen-6781ef7daba03ce86bf71e41981b7f0eef8024ed.zip
Don't use maid unnecessarily in Delete::post_process().
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4407 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/server/events/Delete.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/events/Delete.cpp b/src/server/events/Delete.cpp
index 6d2703b9..013b18fc 100644
--- a/src/server/events/Delete.cpp
+++ b/src/server/events/Delete.cpp
@@ -178,9 +178,9 @@ Delete::post_process()
} else if (_patch_node_listnode || _patch_port_listnode) {
if (_patch_node_listnode) {
_node->deactivate();
- _engine.maid()->push(_patch_node_listnode);
+ delete _patch_node_listnode;
} else if (_patch_port_listnode) {
- _engine.maid()->push(_patch_port_listnode);
+ delete _patch_port_listnode;
}
respond(SUCCESS);
@@ -198,7 +198,7 @@ Delete::post_process()
_engine_port->destroy();
}
- _engine.maid()->push(_garbage);
+ delete _garbage;
}
} // namespace Events