always call VP*EncDeleteAlpha() unconditionnally, for simplicity
Change-Id: I145f94adf6ea11618170c0955e6ef2fa60756f1f
This commit is contained in:
parent
0f8c63849d
commit
60c61d2d54
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user