From 933586661f03aad07b899d9717bef43b88b63dd9 Mon Sep 17 00:00:00 2001 From: Erik Zandvliet Date: Wed, 16 Jul 2014 15:33:05 +0200 Subject: [PATCH] Fixed a "minor" bug... --- lib/shared_memory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index 438804e1..0617093a 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -68,7 +69,10 @@ namespace IPC { } ///\brief The deconstructor - semaphore::~semaphore() {} + semaphore::~semaphore() { + close(); + } + ///\brief Returns whether we have a valid semaphore semaphore::operator bool() const {