summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-20 03:40:41 +0000
committerDavid Robillard <d@drobilla.net>2011-04-20 03:40:41 +0000
commit40e774fc5d9bf301b3eb9acf468efacb0165cd44 (patch)
treeb56880f79929508bf29bcbe3a005d0b05e3cf5f2 /src/engine
parent9ce6db73368703afbd548ed20b886efcc2c27350 (diff)
downloadingen-40e774fc5d9bf301b3eb9acf468efacb0165cd44.tar.gz
ingen-40e774fc5d9bf301b3eb9acf468efacb0165cd44.tar.bz2
ingen-40e774fc5d9bf301b3eb9acf468efacb0165cd44.zip
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3181 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/events/Disconnect.cpp12
-rw-r--r--src/engine/events/Disconnect.hpp9
2 files changed, 11 insertions, 10 deletions
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<Impl>(
- new Impl(_engine,
- _patch,
- dynamic_cast<OutputPort*>(_src_port),
- dynamic_cast<InputPort*>(_dst_port)));
+ _impl = new Impl(_engine,
+ _patch,
+ dynamic_cast<OutputPort*>(_src_port),
+ dynamic_cast<InputPort*>(_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* _impl;
+ CompiledPatch* _compiled_patch;
};
} // namespace Events