bugGNUstep - Bugs: bug #17769, NSColor can leak memory

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #17769: NSColor can leak memory

Submitted by:  Benhur Stein <benhur>
Submitted on:  Fri 15 Sep 2006 11:03:40 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 16 Sep 2006 03:42:01 PM UTC, comment #2:

Fixed in svn

Richard Frith-Macdonald <CaS>
Project Member
Sat 16 Sep 2006 04:09:56 AM UTC, comment #1:

Thanks ,,, fixed in svn as suggested.

Richard Frith-Macdonald <CaS>
Project Member
Fri 15 Sep 2006 11:03:40 PM UTC, original submission:

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

Benhur Stein <benhur>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 16 Sep 2006 03:42:01 PM UTCCaSStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1