From 85606ee1dec9fe9f3fdfa3d151bf9e4849331645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 22 Nov 2005 20:52:36 +0000 Subject: [PATCH] Fixed DetachCurrentMessage(): * the current message is not part of the queue when it's dispatched, so it doesn't make any sense to try to remove it. * it's only to be called during message processing - and at that time, the looper is locked, anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15079 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Looper.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/kits/app/Looper.cpp b/src/kits/app/Looper.cpp index 197085a9df..6ab758cda6 100644 --- a/src/kits/app/Looper.cpp +++ b/src/kits/app/Looper.cpp @@ -321,11 +321,8 @@ BLooper::CurrentMessage() const BMessage* BLooper::DetachCurrentMessage() { - Lock(); BMessage* msg = fLastMessage; fLastMessage = NULL; - fQueue->RemoveMessage(msg); - Unlock(); return msg; }