Fixup Zynaddsubfx-GUI on FreeBSD
shmFifo destructor detaches shared-memory pointer before the included semaphores are destroyed which results in a Segfault (at least on FreeBSD)
This commit is contained in:
@@ -221,9 +221,6 @@ public:
|
||||
|
||||
~shmFifo()
|
||||
{
|
||||
#ifndef USE_QT_SHMEM
|
||||
shmdt( m_data );
|
||||
#endif
|
||||
// master?
|
||||
if( m_master )
|
||||
{
|
||||
@@ -235,6 +232,9 @@ public:
|
||||
sem_destroy( m_messageSem );
|
||||
#endif
|
||||
}
|
||||
#ifndef USE_QT_SHMEM
|
||||
shmdt( m_data );
|
||||
#endif
|
||||
}
|
||||
|
||||
inline bool isInvalid() const
|
||||
|
||||
Reference in New Issue
Block a user