Browse Source

progs/util: Fix memory if LoadRGBMipmaps2 fails.

(cherry picked from commit 28b8e4bcd7)
tags/mesa-7.6.1-rc2-1
Vinson Lee 15 years ago
parent
commit
84de1672d3
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      progs/util/readtex.c

+ 1
- 0
progs/util/readtex.c View File

@@ -305,6 +305,7 @@ GLboolean LoadRGBMipmaps2( const char *imageFile, GLenum target,
fprintf(stderr,
"Error in LoadRGBMipmaps %d-component images not implemented\n",
image->components );
FreeImage(image);
return GL_FALSE;
}


Loading…
Cancel
Save