Minor bugfix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze-1_6_0@16139 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-03-06 13:21:35 +00:00
parent aac4c80e20
commit 7c406f9d81
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-03-06 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSData.m: Fix reference to zone of deallocated object.
Bug reported by Roland Schwingel
2003-02-17 <woudshoo@agilisys.com>
* GNUmakefile (GNUSTEP_TARGET_INSTALL_PREFIX)

View file

@ -634,8 +634,9 @@ failure:
- (id) initWithContentsOfMappedFile: (NSString *)path
{
#ifdef HAVE_MMAP
NSZone *z = GSObjCZone(self);
RELEASE(self);
self = [NSDataMappedFile allocWithZone: GSObjCZone(self)];
self = [NSDataMappedFile allocWithZone: z];
return [self initWithContentsOfMappedFile: path];
#else
return [self initWithContentsOfFile: path];