Affects Version/s: Release 2.1.4, Release 3.0.2, Release 3.1.0, Release 3.1.1
Titanium Mobile SDK, iOS
Whenever i set any property in tiapp.xml, application reports a memory leak when analyzed using Instrument.
Steps to reproduce:
1: Create a sample application and either cloud enable this or set
any property like this in the tiapp.xml
2: Build the application using titanium studio.
3: analyze the application using instrument for memory leaks.
4: after few seconds, instrument will show memory leaks.
5: check the source file for leak.
6: ApplicationDefault.m will be reported for leaks.
6: Code written there and responsible for leak is:
As per my understanding and finding, dictionary object should have been autoreleased while creating, so the above sample must have been written like: