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)