Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Plisson <damien.plisson@yahoo.fr>2009-10-12 15:41:20 +0400
committerDamien Plisson <damien.plisson@yahoo.fr>2009-10-12 15:41:20 +0400
commit600fcd98f3b3162db191f865e070c695af1f9713 (patch)
treea51fff260a30cbe0e3d035cc6d9b2858409ff413 /source/blender/blenlib/intern/util.c
parent237cd688aaead5592393db58cf2e39e2ab3ce9b2 (diff)
Fix some mem leaks
Diffstat (limited to 'source/blender/blenlib/intern/util.c')
-rw-r--r--source/blender/blenlib/intern/util.c2
1 files changed, 2 insertions, 0 deletions
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