mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Fix bug where GSToUnicode attempted to read from a null pointer.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29651 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dc010099a9
commit
c815ae549b
2 changed files with 6 additions and 1 deletions
|
@ -1490,7 +1490,7 @@ done:
|
|||
}
|
||||
}
|
||||
#if !GS_WITH_GC
|
||||
else if (ptr != buf && ptr != *dst)
|
||||
else if (ptr != buf && (dst == 0 || ptr != *dst))
|
||||
{
|
||||
NSZoneFree(zone, ptr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue