bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #14901] Small NSBrowser memory leak


From: Sašo Kiselkov
Subject: [bug #14901] Small NSBrowser memory leak
Date: Wed, 2 Nov 2005 07:23:55 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050911 Firefox/1.0.6 (Debian package 1.0.6-5)

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14901>

                 Summary: Small NSBrowser memory leak
                 Project: GNUstep
            Submitted by: diablos
            Submitted on: Wed 11/02/05 at 07:23
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

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]);






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14901>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]