bug-gnustep
[Top][All Lists]
Advanced

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

[bug #17097] Possible NSKeyedArchiver Bug


From: Michael Johnston
Subject: [bug #17097] Possible NSKeyedArchiver Bug
Date: Thu, 13 Jul 2006 18:03:08 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7

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/





reply via email to

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