aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'image.c')
-rw-r--r--image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/image.c b/image.c
index 62b3c08..3eedf52 100644
--- a/image.c
+++ b/image.c
@@ -492,7 +492,8 @@ void img_render(img_t *img)
imlib_context_set_drawable(win->pm);
if (imlib_image_has_alpha()) {
- bg = imlib_create_image(dw, dh);
+ if ((bg = imlib_create_image(dw, dh)) == NULL)
+ die("could not allocate memory");
imlib_context_set_image(bg);
imlib_image_set_has_alpha(0);