Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2837] Memory leak in iphone application

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2011-12-28T04:00:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios, iphone4, memory
Reportershatthi
AssigneePaul Dowsett
Created2011-12-26T20:41:06.000+0000
Updated2016-03-08T07:47:46.000+0000

Description

Team, I have created a new titanium mobile application for iPhone using titanium 1.7.5. I have not done any changes to the default tab group application. when i analysed this newly created application in instruments, i have noticed memory leak. Below given is the description of the leak. Leaked Object #: __NSCFDictionary Address :0x36bb50 Size: 48 Bytes Responsible Library: TestApp Responsible Frame : +[ApplicationDefaults copyDefaults] Kindly let me know how to solve this memory leak

Comments

  1. Paul Dowsett 2011-12-28

    shatthi The default app is really simply a "hello world" app to confirm that your environment is set up correctly rather than an example of best practices. Having said that, with the introduction of Titanium Studio's samples and templates, this will change over the next few months. You can find guidance on how to improve your Titanium code in our [Documentation & Guides](https://wiki.appcelerator.org/display/guides) and, in particular, [CommonJS Modules in Titanium](https://wiki.appcelerator.org/display/guides/CommonJS+Modules+in+Titanium), [Mobile Best Practices](https://wiki.appcelerator.org/display/guides/Mobile+Best+Practices) and the Codestrong talk [Your Apps are Leaking - Controlling Memory Leaks](http://vimeopro.com/appcelerator/codestrong-2011/video/29804284) on Vimeo. Hence I'm closing this now. Thanks for your input.

JSON Source