Fix memory leak in cocoa accessibility.

Autorelease ("delete later") the created attribute
name array.

Change-Id: I2d7af9eb1fd899f04c8acb90204600a2dd43fa20
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
This commit is contained in:
Morten Johan Sorvig 2012-12-13 11:37:19 +01:00 committed by The Qt Project
parent d6717eb0fb
commit 457829da52

View File

@ -122,7 +122,7 @@ static QAccessibleInterface *acast(void *ptr)
[attributes addObject : NSAccessibilityValueAttribute];
}
return attributes;
return [attributes autorelease];
}
- (id)accessibilityAttributeValue:(NSString *)attribute {