From 8342b7f95bf52208f33fa4ed89da7a84e4260e9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Fri, 28 Jan 2022 09:43:22 +0100 Subject: [PATCH] Added deallocation of DiffViewCtrl::model into the DiffViewCtrl destructor. --- src/slic3r/GUI/UnsavedChangesDialog.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/UnsavedChangesDialog.hpp b/src/slic3r/GUI/UnsavedChangesDialog.hpp index d9154850e3..115300a18b 100644 --- a/src/slic3r/GUI/UnsavedChangesDialog.hpp +++ b/src/slic3r/GUI/UnsavedChangesDialog.hpp @@ -204,7 +204,7 @@ class DiffViewCtrl : public wxDataViewCtrl public: DiffViewCtrl(wxWindow* parent, wxSize size); - ~DiffViewCtrl() {} + ~DiffViewCtrl() override { Clear(); delete model; } DiffModel* model{ nullptr };