From ae1a016e58df53281b64dce2193647ad40f3d99e Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 4 Oct 2015 16:55:38 +0100 Subject: [PATCH] Close f_in on error in Lexicon_De. --- src/extras.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extras.cpp b/src/extras.cpp index dd225d51..3c07391d 100644 --- a/src/extras.cpp +++ b/src/extras.cpp @@ -1,7 +1,7 @@ /*************************************************************************** * Copyright (C) 2006 to 2011 by Jonathan Duddington * * email: jonsd@users.sourceforge.net * - * Copyright (C) 2013 by Reece H. Dunn * + * Copyright (C) 2013-2015 by Reece H. Dunn * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -711,6 +711,7 @@ void Lexicon_De() if((f_out = fopen("compare_de","w")) == NULL) { wxLogError(_T("Can't write file ")); + fclose(f_out); return; } LoadVoice("de",0);