mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-12 22:14:29 +02:00
always call VP*EncDeleteAlpha() unconditionnally, for simplicity
Change-Id: I145f94adf6ea11618170c0955e6ef2fa60756f1f
This commit is contained in:
@ -247,9 +247,7 @@ static VP8Encoder* InitEncoder(const WebPConfig* const config,
|
||||
|
||||
static void DeleteEncoder(VP8Encoder* enc) {
|
||||
if (enc) {
|
||||
if (enc->alpha_data_) {
|
||||
VP8EncDeleteAlpha(enc);
|
||||
}
|
||||
VP8EncDeleteAlpha(enc);
|
||||
free(enc);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user