In your code,
resultCode = AXUIElementCopyAttributeValue( element, attribute, (CFTypeRef *)&temp );
temp is never released.
You should add:
CFMakeCollectable(temp)
MacRuby apps run in GC mode by default but your CF/Obj-C memory management can be a bit tricky (outside of MacRuby), check Apple's documentation available on their dev site.
Matt Aimonetti
2009-10-10 20:41:03