image: copy data before using it

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-12-16 16:44:25 +01:00
parent 8193a9cf0c
commit 0288e227ee
1 changed files with 1 additions and 1 deletions

View File

@ -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;