image: copy data before using it
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2e2f56a43a
commit
7f7e006fd5
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