{ "id": "155550", "key": "AC-3334", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2016-03-08T16:16:58.000+0000", "created": "2016-03-08T11:12:18.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T16:16:58.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": [], "description": "h3. Steps to Reproduce\r\n*saveToPhotoGallery* property must be set to *false*\r\n\r\n{code: javascript}\r\nvar showCamera = function() {\r\n\t\r\n\t\tTi.Media.showCamera({\r\n\t\t\tsuccess:function(event) {\r\n alert('success');\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tcancel:function() {\t\t\t\r\n\t\t\t\t// called when user cancels taking a picture\r\n\t\t\t},\r\n\t\t\terror:function(error) {\r\n\t\t\t\talert('error');\r\n\t\t\t},\r\n\t\t\tsaveToPhotoGallery:false,\r\n\t\t // allowEditing and mediaTypes are iOS-only settings\r\n\t\t});\r\n\t};\r\n\r\nshowCamera();\r\n\r\n{code}\r\n\r\n\r\nh3. Actual Result\r\nEvery photo taken by camera (no matter if later saved or not) will take some space (data on device). There is no way to release that space or get that file, so it will continuously increase taken space until no space is left.\r\nIf you save the image after taking it, than the space taken is doubled (you create additional file). Of course you can delete saved image but it will only release half of taken space.\r\n\r\nThere is no problem if *saveToPhotoGallery* is set to *true*\r\n\r\nh3. Expected Result\r\nSpace taken by the image should be released or there should be the way to get the files taking that space.", "attachment": [], "flagged": false, "summary": "If Image from camera is not saved in gallery will cause storage memory leaks", "creator": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "CREATIVE KAIZEN", "key": "creative kaizen", "displayName": "CREATIVE KAIZEN", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS X El Captain\r\nSDK: 5.2.0GA\r\nDevice: Real Android (Sony Xperia Z2) and GenyMotion Simulator", "comment": { "comments": [ { "id": "379206", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-08T16:16:38.000+0000", "updated": "2016-03-08T16:16:38.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }