From 020cbad9d40235a2c50a81a42d69912a5ff8fbc4 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 24 Jan 2008 13:43:34 +0000 Subject: [PATCH] delete the semaphore instead of releasing it, otherwise DirectConnected() could be called twice with B_DIRECT_STOP when closing the BDirectWindow. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23718 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/game/DirectWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/game/DirectWindow.cpp b/src/kits/game/DirectWindow.cpp index 4a91e56fd5..bdfae45ea0 100644 --- a/src/kits/game/DirectWindow.cpp +++ b/src/kits/game/DirectWindow.cpp @@ -536,9 +536,9 @@ BDirectWindow::_DisposeData() if (fInitStatus & DW_STATUS_THREAD_STARTED) { fDaemonKiller = true; - // Release this sem, otherwise the Direct daemon thread + // delete this sem, otherwise the Direct daemon thread // will wait forever on it - release_sem(fDisableSem); + delete_sem(fDisableSem); status_t retVal; wait_for_thread(fDirectDaemonId, &retVal); }