From 74a853c6054a6d6c46c7587fea50b98d0b4a1707 Mon Sep 17 00:00:00 2001 From: Javier Serrano Polo Date: Sun, 17 Sep 2006 20:23:57 +0000 Subject: [PATCH] fixed segfault when stopping without pattern git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@401 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/core/automation_editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/automation_editor.cpp b/src/core/automation_editor.cpp index aa1626676..46a2e19f5 100644 --- a/src/core/automation_editor.cpp +++ b/src/core/automation_editor.cpp @@ -1814,6 +1814,10 @@ void automationEditor::play( void ) void automationEditor::stop( void ) { + if( !validPattern() ) + { + return; + } if( m_pattern->getTrack() && inBBEditor() ) { eng()->getBBEditor()->stop();