forked from enlightenment/efl
parent
d22155487b
commit
eaf9822094
|
@ -519,13 +519,19 @@ _emile_tgv_data(Emile_Image *image,
|
||||||
if (image->compress)
|
if (image->compress)
|
||||||
{
|
{
|
||||||
if (!emile_expand(data_start, buffer, EMILE_LZ4HC))
|
if (!emile_expand(data_start, buffer, EMILE_LZ4HC))
|
||||||
goto on_error;
|
{
|
||||||
|
eina_binbuf_free(data_start);
|
||||||
|
goto on_error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
buffer = data_start;
|
buffer = data_start;
|
||||||
if (block_count * etc_block_size != block_length)
|
if (block_count * etc_block_size != block_length)
|
||||||
goto on_error;
|
{
|
||||||
|
eina_binbuf_free(data_start);
|
||||||
|
goto on_error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
it = eina_binbuf_string_get(buffer);
|
it = eina_binbuf_string_get(buffer);
|
||||||
|
|
||||||
|
@ -635,6 +641,8 @@ _emile_tgv_data(Emile_Image *image,
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
} /* bx,by inside blocks */
|
} /* bx,by inside blocks */
|
||||||
|
|
||||||
|
eina_binbuf_free(data_start);
|
||||||
} /* x,y macroblocks */
|
} /* x,y macroblocks */
|
||||||
|
|
||||||
// TODO: Add support for more unpremultiplied modes (ETC2)
|
// TODO: Add support for more unpremultiplied modes (ETC2)
|
||||||
|
|
Loading…
Reference in New Issue