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:
parent
aac6ba691f
commit
168b3b75e0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user