summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qnswindow.mm
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-11-15 14:21:56 +0100
committerLiang Qi <liang.qi@qt.io>2018-11-20 19:51:05 +0000
commit12045801f742dd956f17d1a6c72b21f8f245a671 (patch)
tree21c7d0b437c62bccc05186c550784ea7f8cc520f /src/plugins/platforms/cocoa/qnswindow.mm
parent6c1656397a2d0c30810cdbd880eda9e9c43fbe67 (diff)
macOS: Use shared NSWindowDelegate instead of one per window
All the delegate callbacks give us the relevant NSWindow, so we don't need one delegate per window just to be able to resolve the correct platform window. Change-Id: I8e44186da63bf01f029bb0b1fefcd8880f49dda6 Fixes: QTBUG-65693 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qnswindow.mm')
-rw-r--r--src/plugins/platforms/cocoa/qnswindow.mm1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qnswindow.mm b/src/plugins/platforms/cocoa/qnswindow.mm
index b3cd3c1d8c..dd6ee3058a 100644
--- a/src/plugins/platforms/cocoa/qnswindow.mm
+++ b/src/plugins/platforms/cocoa/qnswindow.mm
@@ -248,7 +248,6 @@ static bool isMouseEvent(NSEvent *ev)
- (void)dealloc
{
qCDebug(lcQpaWindow) << "dealloc" << self;
- [self.delegate release];
self.delegate = nil;
qt_objcDynamicSuper();