From 40e774fc5d9bf301b3eb9acf468efacb0165cd44 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 20 Apr 2011 03:40:41 +0000 Subject: Tidy. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3181 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/events/Disconnect.cpp | 12 +++++++----- src/engine/events/Disconnect.hpp | 9 ++++----- 2 files changed, 11 insertions(+), 10 deletions(-) (limited to 'src/engine') diff --git a/src/engine/events/Disconnect.cpp b/src/engine/events/Disconnect.cpp index aa59b618..9618826c 100644 --- a/src/engine/events/Disconnect.cpp +++ b/src/engine/events/Disconnect.cpp @@ -52,6 +52,7 @@ Disconnect::Disconnect( , _patch(NULL) , _src_port(NULL) , _dst_port(NULL) + , _impl(NULL) , _compiled_patch(NULL) { } @@ -164,11 +165,10 @@ Disconnect::pre_process() return; } - _impl = SharedPtr( - new Impl(_engine, - _patch, - dynamic_cast(_src_port), - dynamic_cast(_dst_port))); + _impl = new Impl(_engine, + _patch, + dynamic_cast(_src_port), + dynamic_cast(_dst_port)); if (_patch->enabled()) _compiled_patch = _patch->compile(); @@ -259,6 +259,8 @@ Disconnect::post_process() if (_request) _request->respond_error(msg); } + + delete _impl; } } // namespace Engine diff --git a/src/engine/events/Disconnect.hpp b/src/engine/events/Disconnect.hpp index 0c177d0a..7a22e474 100644 --- a/src/engine/events/Disconnect.hpp +++ b/src/engine/events/Disconnect.hpp @@ -88,16 +88,15 @@ private: CONNECTION_NOT_FOUND }; - Raul::Path _src_port_path; - Raul::Path _dst_port_path; + const Raul::Path _src_port_path; + const Raul::Path _dst_port_path; PatchImpl* _patch; PortImpl* _src_port; PortImpl* _dst_port; - CompiledPatch* _compiled_patch; ///< New process order for Patch - - SharedPtr _impl; + Impl* _impl; + CompiledPatch* _compiled_patch; }; } // namespace Events -- cgit v1.2.1