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

Group
 
 

bug #14901: Small NSBrowser memory leak

Submitter:  Sašo Kiselkov <diablos>
Submitted:  Wed 02 Nov 2005 07:23:53 AM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  FredKiefer
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Should be fixed in CVS.

Fred Kiefer <FredKiefer>
Group Member
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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-11-03 FredKiefer CategoryNone Gui/AppKit
    Item GroupNone Bug
    StatusNone Fixed
    Assigned toNone FredKiefer
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code