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

                 Summary: -[NSURLHandle resourceData] fails to retain &
autorelease its returned value
                 Project: GNUstep
            Submitted by: lcampbel
            Submitted on: Tuesday 01/16/2007 at 18:29
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

-[NSURLHandle resourceData] should always retain & autorelease its returned
value; otherwise, releasing the handle will deallocate the data.

The fix: in NSURLHandle.m, at line 541 (wrt gnustep-base 1.13.0), change
this:

      if (d != nil)
        {
          ASSIGNCOPY(_data, d);
        }
      return _data;


to this:

      if (d != nil)
        {
          ASSIGNCOPY(_data, d);
        }
      return AUTORELEASE([_data copy]);





    _______________________________________________________

Reply to this item at:

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

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



_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to