URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=17097>
Summary: Possible NSKeyedArchiver Bug
Project: GNUstep
Submitted by: mjohnston
Submitted on: Thursday 07/13/2006 at 18:03
Category: Base/Foundation
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
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?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=17097>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep