Browse Source

progs/util: Fix memory leak if LoadYUVImage fails.

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

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

@@ -438,6 +438,7 @@ GLushort *LoadYUVImage( const char *imageFile, GLint *width, GLint *height )
fprintf(stderr,
"Error in LoadYUVImage %d-component images not implemented\n",
image->components );
FreeImage(image);
return NULL;
}


Loading…
Cancel
Save