Fix memory leak.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15901 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-02-07 16:50:05 +00:00
parent e87e07ecbb
commit 5ca050e9ca
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2003-02-07 17:47 Alexander Malmberg <alexander@malmberg.org>
* Source/GSTextStorage.m (-setAttributes:range:): Fix memory leak.
2003-02-05 Richard Frith-Macdonald <rfm@gnu.org>
* Source/libgnustep-gui.def: Regenerated

View file

@ -643,6 +643,7 @@ SANITY();
if (info->attrs == attributes)
{
unCacheAttributes(attributes);
RELEASE(attributes);
}
else
{
@ -654,6 +655,7 @@ SANITY();
else if (info->attrs == attributes)
{
unCacheAttributes(attributes);
RELEASE(attributes);
}
else
{