Added deallocation of DiffViewCtrl::model into the DiffViewCtrl destructor.

This commit is contained in:
Lukáš Hejl 2022-01-28 09:43:22 +01:00
parent e711cb50d0
commit 8342b7f95b

View file

@ -204,7 +204,7 @@ class DiffViewCtrl : public wxDataViewCtrl
public:
DiffViewCtrl(wxWindow* parent, wxSize size);
~DiffViewCtrl() {}
~DiffViewCtrl() override { Clear(); delete model; }
DiffModel* model{ nullptr };