diff options
author | Damien Plisson <damien.plisson@yahoo.fr> | 2009-10-12 15:41:20 +0400 |
---|---|---|
committer | Damien Plisson <damien.plisson@yahoo.fr> | 2009-10-12 15:41:20 +0400 |
commit | 600fcd98f3b3162db191f865e070c695af1f9713 (patch) | |
tree | a51fff260a30cbe0e3d035cc6d9b2858409ff413 /source/blender/blenlib/intern/util.c | |
parent | 237cd688aaead5592393db58cf2e39e2ab3ce9b2 (diff) |
Fix some mem leaks
Diffstat (limited to 'source/blender/blenlib/intern/util.c')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 2 |
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 |