13
0

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
This commit is contained in:
Paul Davis 2012-06-16 02:53:50 +00:00
parent 5f42daa272
commit 223a5e217a

View File

@ -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 ()