cocos2d/cocos2d-x — pull request #1532 by wenbin1989 (2012-11-01 14:02:32+00:00)
Title: Add error handler when read image data using libjpeg.

Fix errors when read image using libjpeg.
Fix errors when read image with broken data using libjpeg.