PNGImporter: Some fix to paletted PNG handling.
commit1da3dfb21996453736aad9ad325ff04f73c1213e
authorTom Prince <tom.prince@ualberta.net>
Thu, 10 Jun 2010 15:46:11 +0000 (10 11:46 -0400)
committerTom Prince <tom.prince@ualberta.net>
Thu, 10 Jun 2010 15:46:32 +0000 (10 11:46 -0400)
treee23857fd1a7dcb7241cb0ee5be337bfd8ae76755
parent3344c671d20abc8ede4526d8547c5424a59dc7d5
PNGImporter: Some fix to paletted PNG handling.

- Don't deallocate read struct until after we are done with it.
- Don't dereference NULL.

Signed-off-by: Tom Prince <tom.prince@ualberta.net>
gemrb/plugins/PNGImporter/PNGImporter.cpp