macOS: Use [QNSWindow closeAndRelease] for closing and releasing

Unifies code paths that end up closing and releasing the window.

Pick-to: 6.6
Change-Id: Ie041079a22bbae0912df0406291c8146f02d0cd7
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Tor Arne Vestbø 2023-08-02 13:52:38 +02:00
parent cc761c85ed
commit 4eb1275062

View File

@ -174,8 +174,7 @@ QCocoaWindow::~QCocoaWindow()
object:m_view];
[m_view release];
[m_nsWindow close];
[m_nsWindow release];
[m_nsWindow closeAndRelease];
}
QSurfaceFormat QCocoaWindow::format() const