-[UIImageView setAnimationImages:] leaks animation array

Number:rdar://6422711 Date Originated:05-Dec-2008 12:15 PM
Status:Duplicate/6239379 Resolved:
Product:iPhone SDK Product Version:2.2
Classification:Serious Bug Reproducible:Always

-[UIImageView setAnimationImages:] overwrites its _UIImageViewExtendedStorage's _animationImages pointer without first releasing the value. If an setAnimationImages:
has previously been called, the previous array will leak.

Steps to Reproduce:
Call -[UIImageView setAnimationImages:] more than once.

Expected Results:
UIImageView releases the previous _UIImageViewExtendedStorage->_animationImages value.

Actual Results:
UIImageView leaks the previous _UIImageViewExtendedStorage->_animationImages value.


Note: -release will still release the array if called.

Simply do not call the -setAnimationImages: method more than once per UIImageView lifetime while this is still unfixed.

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!