mirror of
https://github.com/transmission/transmission
synced 2025-03-12 15:14:12 +00:00
no reason to retain advanced bar info when it's hidden
This commit is contained in:
parent
3ab2e369d4
commit
22ad00e04c
1 changed files with 10 additions and 0 deletions
|
@ -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)];
|
||||
|
|
Loading…
Add table
Reference in a new issue