summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qnswindowdelegate.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-11-15 13:45:46 +0100
committerLiang Qi <liang.qi@qt.io>2018-11-20 19:51:00 +0000
commit6c1656397a2d0c30810cdbd880eda9e9c43fbe67 (patch)
treebf423e4b0598e60489645986166328a46ea202d7 /src/plugins/platforms/cocoa/qnswindowdelegate.h
parent574bf5d9aaea3319e6761b9782ab7ae99991771d (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 'src/plugins/platforms/cocoa/qnswindowdelegate.h')
0 files changed, 0 insertions, 0 deletions