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
e771de5483
commit
b4a250122a
|
@ -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