Loading a PPT file in UIWebView triggers a memory leak in OfficeImport framework

Originator:yourstruly
Number:rdar://13297806 Date Originated:2/26/2013
Status:closed Resolved:
Product:iOS Product Version:6.x
Classification: Reproducible:yes
 
Summary:
If I load a local PowerPoint file in UIWebView to preview it for the user, this leaks memory (from the OfficeImport framework), as I can see in Instruments. Releasing/destroying the UIWebView properly still seems to leak that memory.

Steps to Reproduce:
I'm including an example iOS project, UIWebViewTest, for iOS 6.x. Launch it in Xcode, and run it with the simulator, then launch it with Instruments (Leaks tool), and allow it to load the .ppt file. This appears to happen with any .ppt file I try from my customers, not just this one.

Expected Results:
This shouldn't have any leaks. The view is instantiated with an XIB.

Actual Results:
When the included .ppt file runs, Leaks will show a handful of items, all from OfficeImport.

Regression: N/A

Notes: N/A

Uploaded file: https://www.dropbox.com/s/sy582ju36gzm4i3/UIWebViewTest.zip

Comments


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!