From 32b52a9c96bf6430262428991d8032cf7d46eabe Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 5 Jan 2020 21:17:59 +0100 Subject: [PATCH] cc_item_infobxox: reset pic and cctext in destructor for sure --- src/gui/components/cc_item_infobox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc_item_infobox.cpp b/src/gui/components/cc_item_infobox.cpp index 065e7e91e..5c13d1d0e 100644 --- a/src/gui/components/cc_item_infobox.cpp +++ b/src/gui/components/cc_item_infobox.cpp @@ -79,8 +79,8 @@ CComponentsInfoBox::CComponentsInfoBox( const int& x_pos, CComponentsInfoBox::~CComponentsInfoBox() { - delete pic; - delete cctext; + delete pic; pic = NULL; + delete cctext; cctext = NULL; } void CComponentsInfoBox::setPicture(const std::string& picture_name, const int& dx, const int& dy)