cc_item_infobxox: reset pic and cctext in destructor for sure

This commit is contained in:
2020-01-05 21:17:59 +01:00
parent c725baff27
commit 32b52a9c96

View File

@@ -79,8 +79,8 @@ CComponentsInfoBox::CComponentsInfoBox( const int& x_pos,
CComponentsInfoBox::~CComponentsInfoBox() CComponentsInfoBox::~CComponentsInfoBox()
{ {
delete pic; delete pic; pic = NULL;
delete cctext; delete cctext; cctext = NULL;
} }
void CComponentsInfoBox::setPicture(const std::string& picture_name, const int& dx, const int& dy) void CComponentsInfoBox::setPicture(const std::string& picture_name, const int& dx, const int& dy)