Merge "Fix few missing comparisons to NULL"

This commit is contained in:
James Zern
2013-04-13 10:42:51 -07:00
committed by Gerrit Code Review
5 changed files with 9 additions and 10 deletions

View File

@ -740,9 +740,7 @@ void VP8Clear(VP8Decoder* const dec) {
if (dec->use_threads_) {
WebPWorkerEnd(&dec->worker_);
}
if (dec->mem_) {
free(dec->mem_);
}
free(dec->mem_);
dec->mem_ = NULL;
dec->mem_size_ = 0;
memset(&dec->br_, 0, sizeof(dec->br_));