[TIMOB-2106] Module listeners need to be removed on context close
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:06.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | ios, iphone, listeners, module |
Reporter | Stephen Tramer |
Assignee | Stephen Tramer |
Created | 2011-04-15T03:10:36.000+0000 |
Updated | 2011-04-17T01:58:06.000+0000 |
Description
Module listeners need to be removed on context close, otherwise they can cause an EXEC_BAD_ACCESS when events are fired, due to having been released. To see this behavior in KS:
- Run KS->Phone->Geolocation
- Run KS->Mashups->Foursquare
- Run KS->Phone->Geolocation again
We need to manage this manually rather than have users be responsible for removing their listeners.
(from [ea69b1b8a02f0b1b382f4251cda7db98821c0513]) [#2106 state:fixed-in-qa] Destroyed modules are recreated instead of loaded from cache. Bugfixes for audio event listeners & session handling. http://github.com/appcelerator/titanium_mobile/commit/ea69b1b8a02f0b1b382f4251cda7db98821c0513"> http://github.com/appcelerator/titanium_mobile/commit/ea69b1b8a02f0...
4th gen ipod running 4.1, 3g iphone 3.1.2 .5.0.77ad8ac
unable to repro in todays build, closing.