bugGNUstep - Bugs: bug #17097, Possible NSKeyedArchiver Bug

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #17097: Possible NSKeyedArchiver Bug

Submitted by:  Michael Johnston <mjohnston>
Submitted on:  Thu 13 Jul 2006 06:03:08 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 25 Jul 2006 04:28:09 PM UTC, comment #4:

Someone overwrote the fix ... I've reinstated it.

Richard Frith-Macdonald <CaS>
Project Member
Tue 25 Jul 2006 02:37:51 PM UTC, comment #3:

I just checked out the latest source and it seems as though the change hasn't been commited.

Michael Johnston <mjohnston>
Fri 14 Jul 2006 10:55:57 AM UTC, comment #2:

Thanks ... fixed in SVN using GSIArrayEmpty() as suggested.

Richard Frith-Macdonald <CaS>
Project Member
Fri 14 Jul 2006 08:47:09 AM UTC, comment #1:

Sorry meant NSKeyedUnarchiver.

Michael Johnston <mjohnston>
Thu 13 Jul 2006 06:03:08 PM UTC, original submission:

I've noticed that objects returned by NSKeyedArchiver using decodeObjectForKey: are implicitly retained by the decoder. I thought that objects returned by decodeObjectForKey: should be autoreleased. Is this correct behaviour?

Looking at NSKeyedArchiver source the object is retained when
it is added to the _objMap array in method _decodeObject of NSKeyedArchivers Private category (Theres a comment "Retained in array). However on dealloc the array is cleared using GSIArrayClear which as far as I can see clears the memory but doesnt release the objects in the array.

Maybe GSIArrayEmpty is what should be used here?

Michael Johnston <mjohnston>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 14 Jul 2006 10:55:57 AM UTCCaSStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1