Browse Source

mesa: Fix memory leak in generate_mipmap_compressed.

Fixes Coverity resource leak defect.

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
tags/i965-primitive-restart-v2
Vinson Lee 13 years ago
parent
commit
b688700edc
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/mesa/main/mipmap.c

+ 1
- 0
src/mesa/main/mipmap.c View File

dstWidth, dstHeight, dstDepth, dstWidth, dstHeight, dstDepth,
border, srcImage->InternalFormat, border, srcImage->InternalFormat,
srcImage->TexFormat)) { srcImage->TexFormat)) {
free(temp_dst);
return; return;
} }



Loading…
Cancel
Save