bug-gnustep
[Top][All Lists]
Advanced

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

[bug #17769] NSColor can leak memory


From: Benhur Stein
Subject: [bug #17769] NSColor can leak memory
Date: Fri, 15 Sep 2006 20:03:41 -0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060801 Firefox/1.5.0.5

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/





reply via email to

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