From c43e9309b9df70dcb7e5d3315a92c593bc94a6b1 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 5 Jan 2020 22:22:22 +0100 Subject: [PATCH] cc_item_infobxox: reset pic and cctext in destructor for sure Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/373e70b7c1dc8913354286f2659dcd92410bc483 Author: Thilo Graf Date: 2020-01-05 (Sun, 05 Jan 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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)