bug-gnustep
[Top][All Lists]
Advanced

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

[bug #25270] -[NSTimer invalidate] should release target and userInfo, b


From: Larry Campbell
Subject: [bug #25270] -[NSTimer invalidate] should release target and userInfo, but no longer does
Date: Wed, 07 Jan 2009 23:46:47 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1

URL:
  <http://savannah.gnu.org/bugs/?25270>

                 Summary: -[NSTimer invalidate] should release target and
userInfo, but no longer does
                 Project: GNUstep
            Submitted by: lcampbel
            Submitted on: Wed 07 Jan 2009 11:46:46 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Revision 25780 on the svn trunk broke this: -{NSTimer invalidate] should
release its target and userInfo, but this code got moved into the dealloc
method. This is wrong: Mac OS X documentation clearly states that invalidate
releases the target and userInfo; and it's broken: often the target itself
owns a reference to the NSTimer, and would rely on invalidate to break the
reference count loop.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25270>

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






reply via email to

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