From 7d407a1e99e9c375aaa1f9cb577401b6b52735ae Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 8 Aug 2015 11:38:16 -0400 Subject: [PATCH] BLooper: Fix inverted check that was causing a port leak. Fixes #12286. Thanks to ttcoder & jackburton for investigating! --- src/kits/app/Looper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/app/Looper.cpp b/src/kits/app/Looper.cpp index 6c0b72e49e..579d1db4f0 100644 --- a/src/kits/app/Looper.cpp +++ b/src/kits/app/Looper.cpp @@ -143,7 +143,7 @@ BLooper::~BLooper() // msg will automagically post generic reply } - if (!fOwnsPort) { + if (fOwnsPort) { do { delete ReadMessageFromPort(0); // msg will automagically post generic reply