Fixed some memory leaks in the kanji timer
Originally committed to SVN as r2965.
This commit is contained in:
parent
ecc4b618b3
commit
b4a5032b2e
2 changed files with 9 additions and 0 deletions
|
@ -169,6 +169,14 @@ DialogKanjiTimer::DialogKanjiTimer(wxWindow *parent, SubtitlesGrid *_grid)
|
|||
}
|
||||
|
||||
|
||||
//////////////
|
||||
// Destructor
|
||||
DialogKanjiTimer::~DialogKanjiTimer() {
|
||||
SourceText->PopEventHandler(true);
|
||||
DestText->PopEventHandler(true);
|
||||
}
|
||||
|
||||
|
||||
///////////////
|
||||
// Event table
|
||||
BEGIN_EVENT_TABLE(DialogKanjiTimer,wxDialog)
|
||||
|
|
|
@ -91,6 +91,7 @@ private:
|
|||
|
||||
public:
|
||||
DialogKanjiTimer(wxWindow *parent, SubtitlesGrid *grid);
|
||||
~DialogKanjiTimer();
|
||||
void OnKeyDown(wxKeyEvent &event);
|
||||
inline void OnMouseEvent(wxMouseEvent &event);
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
|
Loading…
Reference in a new issue