corrected bug and leak in getBool

This commit is contained in:
Eli Yukelzon 2011-07-31 15:31:39 +03:00
parent af61a7c650
commit 41bdb281dc
1 changed files with 2 additions and 4 deletions

View File

@ -155,10 +155,8 @@ bool CCUserDefault::getBoolForKey(const char* pKey, bool defaultValue)
if (value) if (value)
{ {
if (! strcmp(value, "true")) ret = (! strcmp(value, "true"));
{ xmlFree((void*)value);
ret = true;
}
} }
return ret; return ret;