mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
Fix the memory leak in ApplyFilters.
Change-Id: Iba1b1adf3088ea9c43e4f602a93e77450f6c6170
This commit is contained in:
parent
2053c2cff2
commit
7413394e7f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user