fixed a memleak in AdWhirlConfig.m

added a TODO about a compiler warning I received that was not flagged in the code.
This commit is contained in:
techdragon.nguyen@gmail.com
2012-01-10 20:21:57 +00:00
parent adc3e4b689
commit bb2536512a
2 changed files with 4 additions and 2 deletions

View File

@@ -327,6 +327,7 @@ BOOL awDoubleVal(double *var, id val) {
case 3:
// general config map
if (![self parseExtraConfig:configDict error:error]) {
[adNetConfigDicts release];
return NO;
}
break; // general config map

View File

@@ -252,6 +252,7 @@ PIXEL_TYPE GameOption::asColor(PIXEL_TYPE fallback)
if (subpixel == 2)
color[3] = 255;
// TODO: WARNING - not all the values of color may be initialized at this point. Do we need to initialize the array to some value?
return ARGB(color[3],color[0],color[1],color[2]);
}