Browse Source

Fix a file leak in MakeVowelLists.

master
Reece H. Dunn 9 years ago
parent
commit
ebd64d961b
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/vowelchart.cpp

+ 5
- 1
src/vowelchart.cpp View File



// select the phoneme table by name // select the phoneme table by name
// if(SetVoiceByName(phoneme_tab_list[table].name) != 0) continue; // if(SetVoiceByName(phoneme_tab_list[table].name) != 0) continue;
if(SelectPhonemeTableName(phoneme_tab_list[table].name) < 0) continue;
if(SelectPhonemeTableName(phoneme_tab_list[table].name) < 0)
{
fclose(f);
continue;
}


voice_found = 0; voice_found = 0;
if((LoadVoice(phoneme_tab_list[table].name, 0) != NULL) && (translator->data_dictrules != NULL)) if((LoadVoice(phoneme_tab_list[table].name, 0) != NULL) && (translator->data_dictrules != NULL))

Loading…
Cancel
Save