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:
Bastian Kummer
2016-03-01 13:54:20 +01:00
parent 1507e4b175
commit 4ddaa872fb

View File

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