diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-06-16 02:53:50 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-06-16 02:53:50 +0000 |
commit | 223a5e217ada4668cab1e6d75f6ca38222b8946c (patch) | |
tree | 1b3f1278a4d999d29faa88c7a3a73cc8ef275482 /libs | |
parent | 5f42daa272e04d603a9e27b8f3a65b2cd9404896 (diff) |
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
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/process_thread.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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<ThreadBuffers> (release_thread_buffer); + if (_private_thread_buffers == 0) { + _private_thread_buffers = new Private<ThreadBuffers> (release_thread_buffer); + } } ProcessThread::ProcessThread () |