Fix the memory leak in ApplyFilters.

Change-Id: Iba1b1adf3088ea9c43e4f602a93e77450f6c6170
This commit is contained in:
Vikas Arora 2013-05-21 13:59:29 -07:00
parent 2053c2cff2
commit 7413394e7f

View File

@ -243,6 +243,8 @@ static int ApplyFilters(const uint8_t* alpha, int width, int height,
VP8BitWriterWipeOut(&best.bw);
best = trial;
if (stats != NULL) best.stats = *stats;
} else {
VP8BitWriterWipeOut(&trial.bw);
}
} else {
VP8BitWriterWipeOut(&trial.bw);