diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-11-15 13:45:46 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-11-20 19:51:00 +0000 |
commit | 6c1656397a2d0c30810cdbd880eda9e9c43fbe67 (patch) | |
tree | bf423e4b0598e60489645986166328a46ea202d7 /examples/gui | |
parent | 574bf5d9aaea3319e6761b9782ab7ae99991771d (diff) |
macOS: Ensure NSWindow delegate is released in sync with its NSWindow
Releasing it in [QNSWindow closeAndRelease] is wrong, as we only call
that method from a few call sites, and can easily end up with a normal
dealloc by means of e.g. the [m_nsWindow release] in ~QCocoaWindow.
This still leaves Xcode thinking we have a single leaking delegate
per active NSWindow, as it apparently doesn't realize we're calling
release manually. This needs to be investigated further.
Task-number: QTBUG-65693
Change-Id: I9105602274d8532465e5108aba2b05bf253268e9
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'examples/gui')
0 files changed, 0 insertions, 0 deletions