aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPStringAdditions.m
diff options
context:
space:
mode:
authorStuart Connolly <stuart02@gmail.com>2014-01-29 11:47:50 +0000
committerStuart Connolly <stuart02@gmail.com>2014-01-29 11:47:50 +0000
commit288b2a0fc257908ae0c1890b1061803d1c0a28e3 (patch)
tree98ab3e820d9cf790c2dfc44c0f3921f80f5b1d3c /Source/SPStringAdditions.m
parentdfb5424d0f4d1fa347c7008ac578a2c7ab21be37 (diff)
downloadsequelpro-288b2a0fc257908ae0c1890b1061803d1c0a28e3.tar.gz
sequelpro-288b2a0fc257908ae0c1890b1061803d1c0a28e3.tar.bz2
sequelpro-288b2a0fc257908ae0c1890b1061803d1c0a28e3.zip
Fix memory leaks.
Diffstat (limited to 'Source/SPStringAdditions.m')
-rw-r--r--Source/SPStringAdditions.m6
1 files changed, 5 insertions, 1 deletions
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;
}
/**