From 4ddaa872fb28c777ca69e48888e00bb69dfdb9d3 Mon Sep 17 00:00:00 2001 From: Bastian Kummer Date: Tue, 1 Mar 2016 13:54:20 +0100 Subject: [PATCH] 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) --- include/RemotePlugin.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/RemotePlugin.h b/include/RemotePlugin.h index 42caa36aa..5d067768f 100644 --- a/include/RemotePlugin.h +++ b/include/RemotePlugin.h @@ -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