v2.2 - bug in CCHttpClient and texture loading

v2.2 - bug in CCHttpClient and texture loading
0.0 0

  1. in the http client code, getRequestData() returns a ref to the vector head, but this is not valid if the head is empty. When the char array is size 0 (zero), the getRequestData() should return NULL instead. The result of this bug is an assert or a bad pointer ref.

  2. In the java side of the android project, if you fail to load a texture, the InputStream allocated to the asset is never closed. This seems to have an effect on re-launching the game where it would stall and show a black screen.


Thanks Jacob.

Could you open a ticket with those issues ? ( http://www.cocos2d-x.org/projects/native/issues/new )
We’ll take a look at those.