bugGNUstep - Bugs: bug #14901, Small NSBrowser memory leak

 
 

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

bug #14901: Small NSBrowser memory leak

Submitted by:  Sašo Kiselkov <diablos>
Submitted on:  Wed 02 Nov 2005 07:23:53 AM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

Thu 03 Nov 2005 11:33:10 PM UTC, comment #1:

Should be fixed in CVS.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Wed 02 Nov 2005 07:23:53 AM UTC, original submission:

NSBrowser.m:516 says:

subStrings = [[path componentsSeparatedByString: _pathSeparator] mutableCopy];

But since -copy and -mutableCopy return retained objects (i.e. retainCount=1), and "subStrings" is never release'ed in the subsequent code in that method, it remains in existance forever. I recommend replacing the line with:

subStrings = AUTORELEASE([[path componentsSeparatedByString: _pathSeparator] mutableCopy]);

Sašo Kiselkov <diablos>

 

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 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 03 Nov 2005 11:33:10 PM UTCFredKieferCategoryNone=>Gui/AppKit
  Item GroupNone=>Bug
  StatusNone=>Fixed
  Assigned toNone=>FredKiefer
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1