mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
aac4c80e20
commit
7c406f9d81
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue