forked from old/legacy-imlib2
WepP loader: Fix memory leak in error path
This commit is contained in:
parent
09d9a95054
commit
701f87ffa6
|
@ -103,6 +103,8 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
(uint8_t *) im->data, webp_buffer_size,
|
||||
im->w * 4) == NULL)
|
||||
{
|
||||
free(im->data);
|
||||
im->data = NULL;
|
||||
free(encoded_data);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue