Fixed a memory leak in the CSRISubtitlesProvider
Originally committed to SVN as r2966.
This commit is contained in:
parent
b4a5032b2e
commit
fff437ea19
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ void CSRISubtitlesProvider::LoadSubtitles(AssFile *subs) {
|
||||||
else {
|
else {
|
||||||
wxString subsFileName = VideoContext::Get()->GetTempWorkFile();
|
wxString subsFileName = VideoContext::Get()->GetTempWorkFile();
|
||||||
subs->Save(subsFileName,false,false,_T("UTF-8"));
|
subs->Save(subsFileName,false,false,_T("UTF-8"));
|
||||||
|
delete subs;
|
||||||
instance = csri_open_file(renderer,subsFileName.mb_str(wxConvUTF8),NULL);
|
instance = csri_open_file(renderer,subsFileName.mb_str(wxConvUTF8),NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue