infoviewer_bb: delete progressbars in destructor

This commit is contained in:
Stefan Seyfried
2012-10-31 22:56:08 +01:00
parent 44a44d6673
commit 009f82fca4

View File

@@ -88,13 +88,13 @@ CInfoViewerBB::CInfoViewerBB()
#endif
hddperT = 0;
hddperTflag = false;
hddscale = NULL;
sysscale = NULL;
Init();
}
void CInfoViewerBB::Init()
{
hddscale = NULL;
sysscale = NULL;
hddwidth = 0;
bbIconMaxH = 0;
bbButtonMaxH = 0;
@@ -123,6 +123,10 @@ CInfoViewerBB::~CInfoViewerBB()
pthread_cancel(hddperT);
hddperT = 0;
}
if (hddscale)
delete hddscale;
if (sysscale)
delete sysscale;
}
CInfoViewerBB* CInfoViewerBB::getInstance()