Cocoa: Fix memory leak in the accessibility code.

QCocoaAccessibleElement takes ownership of the
QAccessibleinterface pointer. Delete it in dealloc().

Change-Id: I45a5540b9cf564c639bfa119ff4882008d63fd96
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
bb10
Morten Johan Sorvig 2012-05-21 08:22:01 +02:00 committed by Qt by Nokia
parent 2c790b251d
commit f5641c503b
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ static QAccessibleInterface *acast(void *ptr)
- (void)dealloc {
[super dealloc];
delete acast(accessibleInterface);
}
- (BOOL)isEqual:(id)object {