- API: file descriptor leak in obscure case.

fixes #103


svn path=/trunk/boinc/; revision=17391
This commit is contained in:
David Anderson 2009-02-26 01:11:37 +00:00
parent d37d487247
commit 019ab4cdfc
2 changed files with 8 additions and 1 deletions

View File

@ -338,8 +338,8 @@ unsigned * read_tga_texture(char *name, int *width, int *height, int*) {
// make sure we are loading a supported type // make sure we are loading a supported type
if (imageBits != 32 && imageBits != 24 && imageBits != 8) return NULL; if (imageBits != 32 && imageBits != 24 && imageBits != 8) return NULL;
base = (unsigned int *)getData (s, size, imageBits); base = (unsigned int *)getData (s, size, imageBits);
return (unsigned *) base;
fclose(s); fclose(s);
return (unsigned *) base;
} }
unsigned * read_rgb_texture(const char *name, int *width, int *height, int *components) { unsigned * read_rgb_texture(const char *name, int *width, int *height, int *components) {

View File

@ -2213,3 +2213,10 @@ David 25 Feb 2009
client/ client/
gui_rpc_server.cpp gui_rpc_server.cpp
cs_prefs.cpp cs_prefs.cpp
David 25 Feb 2009
- API: file descriptor leak in obscure case.
fixes #103
api/
texture.cpp