From 1cf0fce6ae9f543138ff20d9317fc9e04fb54452 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 7 Feb 2003 18:22:54 +0000 Subject: [PATCH] Fix memory leak. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15902 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/GSAttributedString.m | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index beba6c8da..ee89bf995 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-02-07 19:21 Alexander Malmberg + + * Source/GSAttributedString (-setAttributes:range:): Fix memory + leak. + 2003-02-06 Richard Frith-Macdonald * Sourcewin32-def.top: Remove recently added external functions. diff --git a/Source/GSAttributedString.m b/Source/GSAttributedString.m index ac65f7279..941dc284e 100644 --- a/Source/GSAttributedString.m +++ b/Source/GSAttributedString.m @@ -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 {