Fix few missing comparisons to NULL

Change-Id: I0d2ff8e8b507d17e80669b2b59fd5b017af995ed
This commit is contained in:
Pascal Massimino
2013-04-11 00:57:31 -07:00
parent b66caee410
commit 1579989e7b
5 changed files with 9 additions and 10 deletions

View File

@ -766,9 +766,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_));