mirror of https://github.com/odrling/Aegisub
Fixed some memory leaks in the translation assistant detected by valgrind
Originally committed to SVN as r2961.
This commit is contained in:
parent
73dbcf6ecd
commit
68d705fd22
|
@ -161,6 +161,14 @@ DialogTranslation::DialogTranslation (wxWindow *parent,AssFile *_subs,SubtitlesG
|
|||
}
|
||||
|
||||
|
||||
//////////////
|
||||
// Destructor
|
||||
DialogTranslation::~DialogTranslation() {
|
||||
TransText->PopEventHandler(true);
|
||||
PreviewCheck->PopEventHandler(true);
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////
|
||||
// Jumps to line at block
|
||||
bool DialogTranslation::JumpToLine(int n,int block) {
|
||||
|
|
|
@ -83,6 +83,7 @@ private:
|
|||
public:
|
||||
bool enablePreview;
|
||||
DialogTranslation (wxWindow *parent,AssFile *subs,SubtitlesGrid *grid,int startrow=0,bool preview=false);
|
||||
~DialogTranslation();
|
||||
|
||||
void OnTransBoxKey(wxKeyEvent &event);
|
||||
|
||||
|
|
Loading…
Reference in New Issue