macOS: Use [QNSWindow closeAndRelease] for closing and releasing

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

Change-Id: Ie041079a22bbae0912df0406291c8146f02d0cd7
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit 4eb127506277d1db02a34f3d73d906e32a749819)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2023-08-02 13:52:38 +02:00 committed by Qt Cherry-pick Bot
parent aac6ba691f
commit 168b3b75e0

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