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
dd1c706d5c
commit
350d9e5db7
|
@ -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
|
// Jumps to line at block
|
||||||
bool DialogTranslation::JumpToLine(int n,int block) {
|
bool DialogTranslation::JumpToLine(int n,int block) {
|
||||||
|
|
|
@ -83,6 +83,7 @@ private:
|
||||||
public:
|
public:
|
||||||
bool enablePreview;
|
bool enablePreview;
|
||||||
DialogTranslation (wxWindow *parent,AssFile *subs,SubtitlesGrid *grid,int startrow=0,bool preview=false);
|
DialogTranslation (wxWindow *parent,AssFile *subs,SubtitlesGrid *grid,int startrow=0,bool preview=false);
|
||||||
|
~DialogTranslation();
|
||||||
|
|
||||||
void OnTransBoxKey(wxKeyEvent &event);
|
void OnTransBoxKey(wxKeyEvent &event);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue