bugGNUstep - Bugs: bug #25270, -[NSTimer invalidate] should...

Group
 
 

bug #25270: -[NSTimer invalidate] should release target and userInfo, but no longer does

Submitter:  Larry Campbell <lcampbel>
Submitted:  Wed 07 Jan 2009 11:46:46 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 09 Jan 2009 09:24:57 AM UTC, comment #1: 

Thanks ... fixed in svn.

Richard Frith-Macdonald <CaS>
Group Member
Wed 07 Jan 2009 11:46:46 PM UTC, original submission:  

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.


Larry Campbell <lcampbel>

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by lcampbel (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2009-01-09 CaS StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code