From 2523237b33eb7e64f1dec6612df8726d73c2eac7 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sat, 28 Jul 2001 00:53:41 +0000 Subject: [PATCH] beat me silly. i forgot to allocate the memory... :) yay.. fixed :) SVN revision: 4998 --- loaders/loader_db.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/loaders/loader_db.c b/loaders/loader_db.c index 737f8c9..de5b778 100644 --- a/loaders/loader_db.c +++ b/loaders/loader_db.c @@ -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 {