show leaked parameter handles and fix a major leaker
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7116 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 3a8f7b7456da9e97bc3bd0d8acc50dcddf67f2c9 Former-commit-id: a7cb509fb31193a7602733e8cd1bfdf182d695fd
This commit is contained in:
parent
5428d1d8f8
commit
a383da4bf9
2 changed files with 10 additions and 3 deletions
|
@ -188,7 +188,9 @@ GfParmShutdown (void)
|
|||
struct parmHandle *parmHandle;
|
||||
|
||||
while ((parmHandle = GF_TAILQ_FIRST (&parmHandleList)) != GF_TAILQ_END (&parmHandleList)) {
|
||||
parmReleaseHandle (parmHandle);
|
||||
GfLogError("GfParmShutdown: %s not released\n",
|
||||
parmHandle->conf->filename ? parmHandle->conf->filename : parmHandle->conf->name);
|
||||
parmReleaseHandle (parmHandle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -102,16 +102,21 @@ NotificationManager::NotificationManager()
|
|||
this->animationLastExecTime = std::clock(); //the current time
|
||||
|
||||
}
|
||||
NotificationManager::~NotificationManager(){
|
||||
|
||||
NotificationManager::~NotificationManager()
|
||||
{
|
||||
if (menuXMLDescHdle)
|
||||
GfParmReleaseHandle(menuXMLDescHdle);
|
||||
}
|
||||
|
||||
void NotificationManager::updateStatus(){
|
||||
|
||||
//get the current screen
|
||||
this->screenHandle = GfuiGetScreen();
|
||||
|
||||
//get the ui descriptor
|
||||
this->menuXMLDescHdle = GfuiMenuLoad("notifications.xml");
|
||||
if (this->menuXMLDescHdle)
|
||||
this->menuXMLDescHdle = GfuiMenuLoad("notifications.xml");
|
||||
|
||||
//if we are doing nothing and we have some message to display: let's do it
|
||||
if(this->busy==false && !this->msglist.empty()){
|
||||
|
|
Loading…
Reference in a new issue