aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorVincent Bénony2015-12-04 12:26:14 +0100
committerVincent Bénony2016-01-06 16:17:32 +0100
commitcfa9172a6e8543f16c2bbdbb1477bc47dec7f128 (patch)
treeb5c35d0ddca3c1f23d511fd2b382bde0f7ab7041 /devtools
parent99844a81b03645e2c5a94d524f275f6e85977eef (diff)
downloadscummvm-rg350-cfa9172a6e8543f16c2bbdbb1477bc47dec7f128.tar.gz
scummvm-rg350-cfa9172a6e8543f16c2bbdbb1477bc47dec7f128.tar.bz2
scummvm-rg350-cfa9172a6e8543f16c2bbdbb1477bc47dec7f128.zip
IOS: Fixes a small memory leak
Diffstat (limited to 'devtools')
-rw-r--r--devtools/create_project/xcode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp
index 90eea39aaf..66fd8c49f3 100644
--- a/devtools/create_project/xcode.cpp
+++ b/devtools/create_project/xcode.cpp
@@ -443,8 +443,10 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) {
std::string absoluteOutputDir;
#ifdef POSIX
- absoluteOutputDir = realpath(setup.outputDir.c_str(), NULL);
+ char *c_path = realpath(setup.outputDir.c_str(), NULL);
+ absoluteOutputDir = c_path;
absoluteOutputDir += "/lib";
+ free(c_path);
#else
absoluteOutputDir = "lib";
#endif