From 600fcd98f3b3162db191f865e070c695af1f9713 Mon Sep 17 00:00:00 2001 From: Damien Plisson Date: Mon, 12 Oct 2009 11:41:20 +0000 Subject: Fix some mem leaks --- source/blender/blenlib/intern/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenlib/intern/util.c') diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index f6fa4f1ebd2..387d1881d3c 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -1527,6 +1527,8 @@ char* BLI_getbundle(void) { bundleURL = CFBundleCopyBundleURL(mainBundle); pathStr = CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle); CFStringGetCString(pathStr, path, MAXPATHLEN, kCFStringEncodingASCII); + CFRelease(pathStr); + CFRelease(bundleURL); return path; } #endif -- cgit v1.2.3