From 288b2a0fc257908ae0c1890b1061803d1c0a28e3 Mon Sep 17 00:00:00 2001 From: Stuart Connolly Date: Wed, 29 Jan 2014 11:47:50 +0000 Subject: Fix memory leaks. --- Source/SPStringAdditions.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/SPStringAdditions.m') diff --git a/Source/SPStringAdditions.m b/Source/SPStringAdditions.m index 29c0b43f..29b4144d 100644 --- a/Source/SPStringAdditions.m +++ b/Source/SPStringAdditions.m @@ -202,7 +202,11 @@ } } - return [NSString stringWithString:holder]; + NSString *result = [NSString stringWithString:holder]; + + [holder release]; + + return result; } /** -- cgit v1.2.3