From 019ab4cdfcdc5a935ac03b9795d20e967914673f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 26 Feb 2009 01:11:37 +0000 Subject: [PATCH] - API: file descriptor leak in obscure case. fixes #103 svn path=/trunk/boinc/; revision=17391 --- api/texture.cpp | 2 +- checkin_notes | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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