mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
ec02726c53
commit
4fd46ec138
3 changed files with 13 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue