Memory leak fixed

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6486 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-04-20 11:03:16 +00:00
parent ec02726c53
commit 4fd46ec138
3 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,8 @@
2000-04-20 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSCalendarDate.m: Fix memory leak when initialising from
string.
2000-04-20 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSTcpPort.m: define INADDR_NONE to be -1 on systems where

View file

@ -615,13 +615,13 @@
day = dayOfWeek + (julianWeeks * 7 - (currDay - 1));
}
return [[NSCalendarDate alloc] initWithYear: year
month: month
day: day
hour: hour
minute: min
second: sec
timeZone: tz];
return [self initWithYear: year
month: month
day: day
hour: hour
minute: min
second: sec
timeZone: tz];
}
}

View file

@ -909,7 +909,7 @@ GSTimeNow()
NSCalendarDate *d = [calendarClass alloc];
d = [d initWithString: description];
[self initWithTimeIntervalSinceReferenceDate: otherTime(d)];
self = [self initWithTimeIntervalSinceReferenceDate: otherTime(d)];
RELEASE(d);
return self;
}