mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
fix bad indirection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30700 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cdd3ef3c76
commit
a3b778ce05
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-06-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/Additions/Unicode.m: Fix indirect through null pointer.
|
||||
|
||||
2010-06-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSNumber.m: Fix breakage of +numberWith... in subclasses.
|
||||
|
|
|
@ -1488,7 +1488,7 @@ done:
|
|||
}
|
||||
}
|
||||
#if !GS_WITH_GC
|
||||
else if (ptr != buf && dst != 0 && ptr != *dst)
|
||||
else if (ptr != buf && (dst == 0 || ptr != *dst))
|
||||
{
|
||||
NSZoneFree(zone, ptr);
|
||||
}
|
||||
|
@ -2485,7 +2485,7 @@ iconv_start:
|
|||
}
|
||||
}
|
||||
#if !GS_WITH_GC
|
||||
else if (ptr != buf && ptr != *dst)
|
||||
else if (ptr != buf && (dst == 0 || ptr != *dst))
|
||||
{
|
||||
NSZoneFree(zone, ptr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue