always call VP*EncDeleteAlpha() unconditionnally, for simplicity

Change-Id: I145f94adf6ea11618170c0955e6ef2fa60756f1f
This commit is contained in:
Pascal Massimino 2011-04-28 16:08:32 -07:00
parent 0f8c63849d
commit 60c61d2d54

View File

@ -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);
}
}