Fixed a memory leak in the CSRISubtitlesProvider

Originally committed to SVN as r2966.
This commit is contained in:
harukalover 2009-05-21 23:02:34 +00:00
parent b4a5032b2e
commit fff437ea19
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ void CSRISubtitlesProvider::LoadSubtitles(AssFile *subs) {
else {
wxString subsFileName = VideoContext::Get()->GetTempWorkFile();
subs->Save(subsFileName,false,false,_T("UTF-8"));
delete subs;
instance = csri_open_file(renderer,subsFileName.mb_str(wxConvUTF8),NULL);
}
}