iOS: QtFirstResponderEvent needs to release firstResponder to avoid leak

Without setting firstResponder to 0 upon destruction, the current retain
count would never reach zero after the event was used. The result being
that QIOSTextResponder was seldom destroyed, which would also affect its
inputView etc which would also be kept alive.

Change-Id: Ia88e6a9d8764e7e9532487153e5e81a7ad0f9741
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
bb10
Richard Moe Gustavsen 2014-11-12 12:14:57 +01:00 committed by Jani Heikkinen
parent 8ea5b2852e
commit 3e161dcb3d
1 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,11 @@ int infoPlistValue(NSString* key, int defaultValue)
@end
@implementation QtFirstResponderEvent
- (void) dealloc
{
self.firstResponder = 0;
[super dealloc];
}
@end