Some random changes that I didn't have committed
Originally committed to SVN as r1224.
This commit is contained in:
parent
3e2ff3da77
commit
cec8828bb2
1 changed files with 8 additions and 2 deletions
|
@ -66,8 +66,11 @@ SubtitlesPreview::SubtitlesPreview(wxWindow *parent,int id,wxPoint pos,wxSize si
|
|||
// Destructor
|
||||
SubtitlesPreview::~SubtitlesPreview() {
|
||||
delete bmp;
|
||||
bmp = NULL;
|
||||
delete style;
|
||||
style = NULL;
|
||||
delete vid;
|
||||
vid = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -158,8 +161,11 @@ void SubtitlesPreview::UpdateBitmap(int w,int h) {
|
|||
subs->AddLine(_T("Dialogue: 0,0:00:00.00,0:00:05.00,Preview,,0000,0000,0000,,{\\q2}") + showText,_T("[Events]"),0,ver,&outGroup);
|
||||
|
||||
// Apply subtitles
|
||||
provider->LoadSubtitles(subs);
|
||||
provider->DrawSubtitles(frame,0.1);
|
||||
try {
|
||||
provider->LoadSubtitles(subs);
|
||||
provider->DrawSubtitles(frame,0.1);
|
||||
}
|
||||
catch (...) {}
|
||||
delete provider;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue