macOS: Improve logging during QNSView/QNSWindow deallocation

Change-Id: Ie6945f2a1f35db6d1259b77ee63137abcaf68318
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
bb10
Tor Arne Vestbø 2018-11-16 19:34:36 +01:00 committed by Liang Qi
parent 666f3b4a78
commit 9c560eb8b5
2 changed files with 4 additions and 2 deletions

View File

@ -166,6 +166,8 @@
- (void)dealloc
{
qCDebug(lcQpaWindow) << "Deallocating" << self;
if (m_trackingArea) {
[self removeTrackingArea:m_trackingArea];
[m_trackingArea release];

View File

@ -238,7 +238,7 @@ static bool isMouseEvent(NSEvent *ev)
- (void)closeAndRelease
{
qCDebug(lcQpaWindow) << "closeAndRelease" << self;
qCDebug(lcQpaWindow) << "Closing and releasing" << self;
[self close];
[self release];
}
@ -247,7 +247,7 @@ static bool isMouseEvent(NSEvent *ev)
#pragma clang diagnostic ignored "-Wobjc-missing-super-calls"
- (void)dealloc
{
qCDebug(lcQpaWindow) << "dealloc" << self;
qCDebug(lcQpaWindow) << "Deallocating" << self;
self.delegate = nil;
qt_objcDynamicSuper();