From 92640829ad9f14ac83d870ed119e2738983f5284 Mon Sep 17 00:00:00 2001 From: Alex Trotsenko Date: Tue, 8 Sep 2020 08:11:47 +0000 Subject: Revert "Do not wait in QWindowsPipe{Reader|Writer}::stop()" This reverts commit c7ec07d40115bef849574c81d619b629af9434a9. Reason for revert: This causes a memory leak on program termination. The initial commit was an attempt to fix a deadlock where the user destroys object from a thread that does not own the object. This is an unsupported case and should be treated as an invalid report. Pick-to: 5.15 Change-Id: I4957784b86a0361adb65b9d023542f96480f00ba Reviewed-by: Oswald Buddenhagen --- src/corelib/io/qwindowspipewriter_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/io/qwindowspipewriter_p.h') diff --git a/src/corelib/io/qwindowspipewriter_p.h b/src/corelib/io/qwindowspipewriter_p.h index 6c269e86b7..f7f68b688c 100644 --- a/src/corelib/io/qwindowspipewriter_p.h +++ b/src/corelib/io/qwindowspipewriter_p.h @@ -143,7 +143,7 @@ private: }; HANDLE handle; - Overlapped *overlapped; + Overlapped overlapped; QByteArray buffer; qint64 pendingBytesWrittenValue; bool stopped; -- cgit v1.2.3