diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-28 18:51:47 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-28 18:51:47 +0100 |
| commit | a8c59c41bc103f0336d9982369be5dd85ac68111 (patch) | |
| tree | fb6bfea03fe6b000fc7f3c4a0421388cd6a13d57 /src/base_tab/AppendGameDialog.hpp | |
| parent | 8f1e8fa106107c61c7ac62fa0f13340537ba4d23 (diff) | |
Fix majors memory leaks (TODO: shared_ptr for Game objects and implement ~Game())
Diffstat (limited to 'src/base_tab/AppendGameDialog.hpp')
| -rw-r--r-- | src/base_tab/AppendGameDialog.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base_tab/AppendGameDialog.hpp b/src/base_tab/AppendGameDialog.hpp index fba8078..648c798 100644 --- a/src/base_tab/AppendGameDialog.hpp +++ b/src/base_tab/AppendGameDialog.hpp @@ -1,11 +1,12 @@ #include "gamebase/GameBase.hpp" class AppendGameDialog : public DialogAppendGame { - GameBase *base; + GameBase *base; // Should not be destroy std::vector<TabInfos *> tinfos; public: AppendGameDialog(wxWindow *parent, GameBase *base); void OnCancel(wxCommandEvent &event); void OnImport(wxCommandEvent &event); + void OnClose(wxCloseEvent &e); };
\ No newline at end of file |
