From 42da7c9ddf05a86929a84974a435cff104723928 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 5 Jul 2008 07:03:48 +0000 Subject: [PATCH] delete automation-pattern is in correct thread (closes #2008232) git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1271 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 5 +++++ include/inline_automation.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 06f23ba75..b5fa35216 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-07-05 Tobias Doerffel + + * include/inline_automation.h: + delete automation-pattern is in correct thread (closes #2008232) + 2008-07-04 Tobias Doerffel * include/track.h: diff --git a/include/inline_automation.h b/include/inline_automation.h index bcb37b55e..89fcda266 100644 --- a/include/inline_automation.h +++ b/include/inline_automation.h @@ -42,7 +42,10 @@ public: virtual ~inlineAutomation() { - delete m_autoPattern; + if( m_autoPattern ) + { + m_autoPattern->deleteLater(); + } } inline bool hasAutomation( void ) const