We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
InputStream is not closed after failed texture load
InputStream is not closed after failed texture load
Bug #2998 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8232
Status: | Closed | |
---|---|---|
Start date: | 2013-10-17 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | android | |
Target version: | - |
In the cc2dx android activity code, when a texture is loaded but fails (as in it was bigger than 2048 x 2048), the InputStream used to load the texture is not closed in the try/catch handler. ADT/Eclipse will issue a warning about this. The side effect here is that the app will not resume after background b/c it tries to reload that texture and can’t because the file is already open.