From 7dfbdb56ea4b561e7c6ef77ae9e5f779f18d13e3 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 4 Oct 2015 17:01:26 +0100 Subject: [PATCH] Fix the logic in Lexicon_It to avoid leaking f_list_in when pass is not 1 or 2. --- src/extras.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extras.cpp b/src/extras.cpp index 6caa2ea8..ea942f10 100644 --- a/src/extras.cpp +++ b/src/extras.cpp @@ -384,7 +384,7 @@ void Lexicon_It(int pass) f_listx = fopen(buf,"w"); wxLogStatus(_T("Pass 1")); } - else + else if(pass == 2) { CompileDictionary(path_dsource,"it",NULL,NULL,0); sprintf(buf,"%s/it_listx2",path_dsource);