{ "id": "64146", "key": "TIMOB-3514", "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": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11250", "name": "Sprint 2011-15", "archived": true, "released": true, "releaseDate": "2011-04-18" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-18T09:56:57.000+0000", "created": "2011-04-15T03:46:09.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-18T09:56:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

I have a tab window (window A) with a tableview. When I click on\na row in the tableview it opens a new window (window B). All I have\non window B is an onclick to close the window on the\nleftNavButton.

\n

Window A onclick code:

\n

https://gist.github.com/6548c7fa9543d81f2b90

\n

Window B return code:

\n

https://gist.github.com/ecdacf378723f990a9fe

\n

The memory goes as follows:

\n

App first opens: 10.36 MB
\nClick on Table View Row and open Window B: 10.65
\nClick on close of Window B: 10.63
\nClick on table view row and open window B again: 10.75
\nClick on close of Window B: 10.71

\n

If we add more data to Window B the memory leak is\namplified.

\n

Titanium version: 1.2.2
\nTitanium SK 1.7.0
\nIphone SDK 4.1 up to 4.3
\nxcode 4.0.1

{html}", "attachment": [], "flagged": false, "summary": "Memory leak when opening/closing a new window from an existing tab window", "creator": { "name": "scottsampson", "key": "scottsampson", "displayName": "Scott Sampson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "scottsampson", "key": "scottsampson", "displayName": "Scott Sampson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130884", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Currently fixed in side branch, not Master.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T15:32:17.000+0000", "updated": "2011-04-15T15:32:17.000+0000" }, { "id": "133879", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I used the provided sample code plus a few additions to get it working and set up a test with Instruments. Instruments showed to app at 1MB shortly after launch and analytics load. On the first window open, it rose to 1.14MB. After about 5 minutes of repeated row clicking and window opening, the memory hovered at 1.14-1.15 and showed no sign of a steady increase. This was with 1.7.0RC1 and iPhone 4, iOS 4.3.3. Closing.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-18T09:56:57.000+0000", "updated": "2011-05-18T09:56:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }