mirror of https://github.com/odrling/Aegisub
Fixed a memory leak in the CSRISubtitlesProvider
Originally committed to SVN as r2966.
This commit is contained in:
parent
b4a5032b2e
commit
fff437ea19
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue