Commit 3e161dcb authored by Richard Moe Gustavsen's avatar Richard Moe Gustavsen Committed by Jani Heikkinen
Browse files

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: default avatarTor Arne Vestbø <tor.arne.vestbo@digia.com>
Showing with 5 additions and 0 deletions
...@@ -141,6 +141,11 @@ int infoPlistValue(NSString* key, int defaultValue) ...@@ -141,6 +141,11 @@ int infoPlistValue(NSString* key, int defaultValue)
@end @end
@implementation QtFirstResponderEvent @implementation QtFirstResponderEvent
- (void) dealloc
{
self.firstResponder = 0;
[super dealloc];
}
@end @end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment