From 223a5e217ada4668cab1e6d75f6ca38222b8946c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 16 Jun 2012 02:53:50 +0000 Subject: extra insurance against ProcessThread::init() being called more than once git-svn-id: svn://localhost/ardour2/branches/3.0@12737 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/process_thread.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/ardour/process_thread.cc') diff --git a/libs/ardour/process_thread.cc b/libs/ardour/process_thread.cc index ae7466c7f0..5d3b54cb13 100644 --- a/libs/ardour/process_thread.cc +++ b/libs/ardour/process_thread.cc @@ -40,7 +40,9 @@ release_thread_buffer (void* arg) void ProcessThread::init () { - _private_thread_buffers = new Private (release_thread_buffer); + if (_private_thread_buffers == 0) { + _private_thread_buffers = new Private (release_thread_buffer); + } } ProcessThread::ProcessThread () -- cgit v1.2.3