Commit 019ab4cd authored by David Anderson's avatar David Anderson

- API: file descriptor leak in obscure case.

        fixes #103


svn path=/trunk/boinc/; revision=17391
parent d37d4872
......@@ -338,8 +338,8 @@ unsigned * read_tga_texture(char *name, int *width, int *height, int*) {
// make sure we are loading a supported type
if (imageBits != 32 && imageBits != 24 && imageBits != 8) return NULL;
base = (unsigned int *)getData (s, size, imageBits);
return (unsigned *) base;
fclose(s);
return (unsigned *) base;
}
unsigned * read_rgb_texture(const char *name, int *width, int *height, int *components) {
......
......@@ -2213,3 +2213,10 @@ David 25 Feb 2009
client/
gui_rpc_server.cpp
cs_prefs.cpp
David 25 Feb 2009
- API: file descriptor leak in obscure case.
fixes #103
api/
texture.cpp
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment