Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
- Subject: Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 11 Nov 2010 05:07:25 -0500
On Nov 10, 2010, at 6:01 PM, Peter Lübke wrote: In my app, I call AXUIElementCopyAttributeNames() and AXUIElementCopyAttributeValue() very frequently, but as far as I can see, the resulting objects are all properly released and ObjectAlloc and MallocDebug show no indication of possible leaks In your code, do you call CFRelease() on the attribute names and the attribute value when you are finished with them? The convention for Core Foundation functions like these is that, if the function contains the word "copy," you are responsible for CFReleasing the object. This applies to the accessibility functions. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden