forked from old/legacy-imlib2
beat me silly. i forgot to allocate the memory... :) yay.. fixed :)
SVN revision: 4998
This commit is contained in:
parent
c0b2c98eab
commit
2523237b33
|
@ -241,6 +241,13 @@ load (ImlibImage *im, ImlibProgressFunction progress,
|
||||||
uLongf dlen;
|
uLongf dlen;
|
||||||
|
|
||||||
dlen = w * h * sizeof(DATA32);
|
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));
|
uncompress((Bytef *)im->data, &dlen, (Bytef *)body, (uLongf)(size - 32));
|
||||||
#ifdef WORDS_BIGENDIAN
|
#ifdef WORDS_BIGENDIAN
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue