aboutsummaryrefslogtreecommitdiff
path: root/chaos/src/chaos_msg.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'chaos/src/chaos_msg.hpp')
-rw-r--r--chaos/src/chaos_msg.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/chaos/src/chaos_msg.hpp b/chaos/src/chaos_msg.hpp
index 3f80101..357ff6a 100644
--- a/chaos/src/chaos_msg.hpp
+++ b/chaos/src/chaos_msg.hpp
@@ -25,6 +25,11 @@ template <class system> class chaos_msg
{
FLEXT_HEADER(chaos_msg, flext_base);
+ ~chaos_msg()
+ {
+ delete m_system;
+ }
+
public:
/* local data for system, output and interpolation */
@@ -59,10 +64,5 @@ SYSTEM##_msg(int argc, t_atom* argv ) \
AddOutFloat(); \
\
ATTRIBUTES; \
- FLEXT_ADDBANG(0, m_bang); \
-} \
- \
-~SYSTEM##_msg() \
-{ \
- delete m_system; \
+ FLEXT_ADDBANG(0, m_bang); \
}