Some random changes that I didn't have committed

Originally committed to SVN as r1224.
This commit is contained in:
Rodrigo Braz Monteiro 2007-06-16 19:38:44 +00:00
parent 3e2ff3da77
commit cec8828bb2
1 changed files with 8 additions and 2 deletions

View File

@ -66,8 +66,11 @@ SubtitlesPreview::SubtitlesPreview(wxWindow *parent,int id,wxPoint pos,wxSize si
// Destructor // Destructor
SubtitlesPreview::~SubtitlesPreview() { SubtitlesPreview::~SubtitlesPreview() {
delete bmp; delete bmp;
bmp = NULL;
delete style; delete style;
style = NULL;
delete vid; 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); 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 // Apply subtitles
try {
provider->LoadSubtitles(subs); provider->LoadSubtitles(subs);
provider->DrawSubtitles(frame,0.1); provider->DrawSubtitles(frame,0.1);
}
catch (...) {}
delete provider; delete provider;
} }