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:
parent
cc761c85ed
commit
4eb1275062
@ -174,8 +174,7 @@ QCocoaWindow::~QCocoaWindow()
|
|||||||
object:m_view];
|
object:m_view];
|
||||||
|
|
||||||
[m_view release];
|
[m_view release];
|
||||||
[m_nsWindow close];
|
[m_nsWindow closeAndRelease];
|
||||||
[m_nsWindow release];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QSurfaceFormat QCocoaWindow::format() const
|
QSurfaceFormat QCocoaWindow::format() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user