From 6781ef7daba03ce86bf71e41981b7f0eef8024ed Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 May 2012 04:42:01 +0000 Subject: 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 --- src/server/events/Delete.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server') 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 -- cgit v1.2.1