mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Little tweak for safety .. return immutable copy rather than mutable
instance variable. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18404 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
89c41e2f32
commit
8971343f45
2 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,8 @@
|
|||
|
||||
* Source/NSURLHandle.m: ([-availableResourceData]) remove condition
|
||||
that returns nil while resource is loading. Fix typo in method
|
||||
description.
|
||||
description. Return copy a of internal variable rather than the
|
||||
actuyal mutable data object.
|
||||
|
||||
2004-01-12 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
|
|
|
@ -247,7 +247,7 @@ static Class NSURLHandleClass = 0;
|
|||
*/
|
||||
- (NSData*) availableResourceData
|
||||
{
|
||||
return _data;
|
||||
return AUTORELEASE([_data copy]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue