From 7720981324ca5b8ab9a12ce33b20fd06aff3007a Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 16 Feb 2012 19:59:21 -0500 Subject: [PATCH] Fixes #151 Close a file descriptor that could be leaked --- Sources/Plasma/PubUtilLib/plGImage/plFont.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Plasma/PubUtilLib/plGImage/plFont.cpp b/Sources/Plasma/PubUtilLib/plGImage/plFont.cpp index 99a90f23..eba35e2c 100644 --- a/Sources/Plasma/PubUtilLib/plGImage/plFont.cpp +++ b/Sources/Plasma/PubUtilLib/plGImage/plFont.cpp @@ -1913,6 +1913,7 @@ hsBool plFont::LoadFromBDF( const char *path, plBDFConvertCallback *callback ) catch( ... ) { IClear(); + fclose( fp ); return false; }