Browse Source

progs/util: Fix memory leak if LoadYUVImage fails.

tags/mesa_7_7_rc1
Vinson Lee 15 years ago
parent
commit
0e790ac353
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