Fix memory leak.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15902 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-02-07 18:22:54 +00:00
parent 6c649289e5
commit cfd390dc45
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-02-07 19:21 Alexander Malmberg <alexander@malmberg.org>
* Source/GSAttributedString (-setAttributes:range:): Fix memory
leak.
2003-02-06 Richard Frith-Macdonald <rfm@gnu.org>
* Sourcewin32-def.top: Remove recently added external functions.

View file

@ -720,6 +720,7 @@ SANITY();
if (info->attrs == attributes)
{
unCacheAttributes(attributes);
RELEASE(attributes);
}
else
{
@ -731,6 +732,7 @@ SANITY();
else if (info->attrs == attributes)
{
unCacheAttributes(attributes);
RELEASE(attributes);
}
else
{