From 0d8942e64a0e1ef860e31a81246a0d17bbfda075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 27 Mar 2019 00:39:24 +0100 Subject: [PATCH] Haiku: remove redundant calls to delete_sem() Fixes #184. Semaphores are kernel-managed objects, calling delete_sem() twice is not more dangerous than calling close() twice on an fd though, it would just return an error. --- src/output/plugins/HaikuOutputPlugin.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/output/plugins/HaikuOutputPlugin.cxx b/src/output/plugins/HaikuOutputPlugin.cxx index 5d8cbf374..86fa7baf5 100644 --- a/src/output/plugins/HaikuOutputPlugin.cxx +++ b/src/output/plugins/HaikuOutputPlugin.cxx @@ -140,9 +140,6 @@ HaikuOutput::Close() noexcept HaikuOutput::~HaikuOutput() { - delete_sem(new_buffer); - delete_sem(buffer_done); - finalize_application(); }