From 592b0025d911889cb45190394517aa96ae823e86 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 25 Jan 2015 15:31:22 +0100 Subject: [PATCH] CComponentsInfoBox: remove unnecessary call for kill() partial revert of: CComponentsInfoBox: fix centering of image --- src/gui/components/cc_item_infobox.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/components/cc_item_infobox.cpp b/src/gui/components/cc_item_infobox.cpp index 4385341be..0477cf1f3 100644 --- a/src/gui/components/cc_item_infobox.cpp +++ b/src/gui/components/cc_item_infobox.cpp @@ -96,11 +96,9 @@ void CComponentsInfoBox::paintPicture() { //ensure empty pic object if (pic){ - if (pic->isPicPainted()) - pic->kill(); delete pic; + pic = NULL; } - pic = NULL; //exit if no image definied if (pic_name.empty())