image: copy data before using it
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8193a9cf0c
commit
0288e227ee
2
image.c
2
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;
|
||||
|
|
Loading…
Reference in New Issue