diff --git a/api/texture.cpp b/api/texture.cpp index 3cfca738a2..1135bd6566 100644 --- a/api/texture.cpp +++ b/api/texture.cpp @@ -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) { diff --git a/checkin_notes b/checkin_notes index 17d7919ed6..0553811013 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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