beat me silly. i forgot to allocate the memory... :) yay.. fixed :)

SVN revision: 4998
This commit is contained in:
Carsten Haitzler 2001-07-28 00:53:41 +00:00
parent c0b2c98eab
commit 2523237b33
1 changed files with 7 additions and 0 deletions

View File

@ -241,6 +241,13 @@ load (ImlibImage *im, ImlibProgressFunction progress,
uLongf dlen;
dlen = w * h * sizeof(DATA32);
im->data = malloc(w * h * sizeof(DATA32));
if (!im->data)
{
free(ret);
e_db_close(db);
return 0;
}
uncompress((Bytef *)im->data, &dlen, (Bytef *)body, (uLongf)(size - 32));
#ifdef WORDS_BIGENDIAN
{