From 0288e227eec3d7d259199be4173272c025ef4d42 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 16 Dec 2008 16:44:25 +0100 Subject: [PATCH] image: copy data before using it Signed-off-by: Julien Danjou --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.c b/image.c index 8428257fe..f796edf7c 100644 --- a/image.c +++ b/image.c @@ -114,7 +114,7 @@ image_new_from_argb32(int width, int height, uint32_t *data) Imlib_Image imimage; image_t *image = NULL; - if((imimage = imlib_create_image_using_data(width, height, data))) + if((imimage = imlib_create_image_using_copied_data(width, height, data))) { image = p_new(image_t, 1); image->image = imimage;