URL:
<http://savannah.gnu.org/bugs/?17769>
Summary: NSColor can leak memory
Project: GNUstep
Submitted by: benhur
Submitted on: Friday 09/15/2006 at 20:03
Category: Gui/AppKit
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
Hi.
In NSColor.m, -colorWithAlphaComponent: (lines 1874, 2174, 2404)
is returning a copied object, non autoreleased.
Solution: put [aCopy autorelease] in the return statement
(or inside the if statement).
Benhur
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?17769>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep