no reason to retain advanced bar info when it's hidden

This commit is contained in:
Mitchell Livingston 2007-11-05 00:04:14 +00:00
parent 3ab2e369d4
commit 22ad00e04c
1 changed files with 10 additions and 0 deletions

View File

@ -288,7 +288,17 @@ static uint32_t kBlue = OSSwapBigToHostConstInt32(0x50A0FFFF), //80, 160, 255
[self drawPiecesBar: piecesBarRect];
}
else
{
if (fPieces)
{
free(fPieces);
fPieces = NULL;
[fBitmap release];
fBitmap = nil;
}
[self drawRegularBar: barRect];
}
[fBarOverlayColor set];
[NSBezierPath strokeRect: NSInsetRect(barRect, 0.5, 0.5)];