mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Fix memory leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24868 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
96f25438e5
commit
f5bb569071
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-03-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/Additions/GSXML.m: Fix memory leak caused by url handle
|
||||||
|
retaining xmlrpc object as a client.
|
||||||
|
|
||||||
2007-03-13 Richard Frith-Macdonald <rfm@gnu.org>
|
2007-03-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSLocale.m: Expect locale information (nl_langinfo) to be in
|
* Source/GSLocale.m: Expect locale information (nl_langinfo) to be in
|
||||||
|
|
|
@ -5076,7 +5076,6 @@ static void indentation(unsigned level, NSMutableString *str)
|
||||||
[handle writeProperty: pKey forKey: GSHTTPPropertyKeyFileKey];
|
[handle writeProperty: pKey forKey: GSHTTPPropertyKeyFileKey];
|
||||||
[handle writeProperty: pwd forKey: GSHTTPPropertyPasswordKey];
|
[handle writeProperty: pwd forKey: GSHTTPPropertyPasswordKey];
|
||||||
}
|
}
|
||||||
[handle addClient: self];
|
|
||||||
#else
|
#else
|
||||||
connectionURL = [url copy];
|
connectionURL = [url copy];
|
||||||
connection = nil;
|
connection = nil;
|
||||||
|
@ -5310,6 +5309,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
||||||
repeats: NO];
|
repeats: NO];
|
||||||
|
|
||||||
#ifdef GNUSTEP
|
#ifdef GNUSTEP
|
||||||
|
[handle addClient: self];
|
||||||
[handle writeProperty: @"POST" forKey: GSHTTPPropertyMethodKey];
|
[handle writeProperty: @"POST" forKey: GSHTTPPropertyMethodKey];
|
||||||
[handle writeProperty: @"GSXMLRPC/1.0.0" forKey: @"User-Agent"];
|
[handle writeProperty: @"GSXMLRPC/1.0.0" forKey: @"User-Agent"];
|
||||||
[handle writeProperty: @"text/xml" forKey: @"Content-Type"];
|
[handle writeProperty: @"text/xml" forKey: @"Content-Type"];
|
||||||
|
@ -5394,6 +5394,9 @@ static void indentation(unsigned level, NSMutableString *str)
|
||||||
ASSIGN(result, reason);
|
ASSIGN(result, reason);
|
||||||
[timer invalidate];
|
[timer invalidate];
|
||||||
timer = nil;
|
timer = nil;
|
||||||
|
#ifdef GNUSTEP
|
||||||
|
[handle removeClient: self];
|
||||||
|
#endif
|
||||||
if ([delegate respondsToSelector: @selector(completedXMLRPC:)])
|
if ([delegate respondsToSelector: @selector(completedXMLRPC:)])
|
||||||
{
|
{
|
||||||
[delegate completedXMLRPC: self];
|
[delegate completedXMLRPC: self];
|
||||||
|
@ -5411,6 +5414,9 @@ static void indentation(unsigned level, NSMutableString *str)
|
||||||
|
|
||||||
[timer invalidate];
|
[timer invalidate];
|
||||||
timer = nil;
|
timer = nil;
|
||||||
|
#ifdef GNUSTEP
|
||||||
|
[handle removeClient: self];
|
||||||
|
#endif
|
||||||
str = [handle propertyForKeyIfAvailable: NSHTTPPropertyStatusCodeKey];
|
str = [handle propertyForKeyIfAvailable: NSHTTPPropertyStatusCodeKey];
|
||||||
if (str == nil)
|
if (str == nil)
|
||||||
{
|
{
|
||||||
|
@ -5464,6 +5470,9 @@ static void indentation(unsigned level, NSMutableString *str)
|
||||||
|
|
||||||
[timer invalidate];
|
[timer invalidate];
|
||||||
timer = nil;
|
timer = nil;
|
||||||
|
#ifdef GNUSTEP
|
||||||
|
[handle removeClient: self];
|
||||||
|
#endif
|
||||||
|
|
||||||
if ([delegate respondsToSelector: @selector(completedXMLRPC:)])
|
if ([delegate respondsToSelector: @selector(completedXMLRPC:)])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue