I load a png okay, then it complains on this line:
int is_png = !png_sig_cmp(header, 0, 8);
if (!is_png)
{
LOGE("Not a png file : %s", strFileName);
return NULL;
}
And the next one causes a crash.
03-27 17:34:01.060: A/libc(21835): @@@ ABORTING: LIBC: ARGUMENT IS INVALID HEAP ADDRESS IN dlfree addr=0x5b050000
03-27 17:34:01.060: A/libc(21835): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 21849 (engame.pathogen)
Any ideas why?