{ "id": "150311", "key": "TIMOB-19874", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-08-11T18:49:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:51.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Reference: https://docs.appcelerator.com/platform/latest/#!/guide/Alloy_ListView_Guide-section-40928632_AlloyListViewGuide-HandlingEventsonTemplateViews\r\n\r\nCreate a default Alloy project with the following:\r\n\r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.js\r\n{code}\r\nfunction doClick(e) {\r\n Alloy.createController(\"sample\").getView().open();\r\n}\r\n$.index.open();\r\n{code}\r\n\r\nsample.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n \r\n \r\n \r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nsample.js\r\n{code}\r\nfunction doLabelClick(){\r\n\t\r\n}\r\nfunction doClick(){\r\n\t$.sample.close();\r\n}\r\n{code}\r\n\r\nUse XCode Instrument to monitor Allocations. Open and Close the sample window. You'll see the sample window view proxies remain in memory. However, if you remove \"doLabelClick,\" this issue is gone. This is a serious problem. Please investigate.", "attachment": [], "flagged": false, "summary": "ListView - Handling Events on Template Views causing Memory Leak!", "creator": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 4.1.0", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }