aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJohannes Schickel2016-01-07 11:14:00 +0100
committerJohannes Schickel2016-01-07 11:25:02 +0100
commit54f5c95832921b72583144e53fa45318a60e9ff9 (patch)
treecfe4f30a481bba1b6cdf6c15ede4da98eea44359 /backends/platform
parent1baf3bed7ab240f2ca0f5696b1e78dc741222ae2 (diff)
downloadscummvm-rg350-54f5c95832921b72583144e53fa45318a60e9ff9.tar.gz
scummvm-rg350-54f5c95832921b72583144e53fa45318a60e9ff9.tar.bz2
scummvm-rg350-54f5c95832921b72583144e53fa45318a60e9ff9.zip
COMMON: Make FSNode(AbstractFSNode *) private again.
This also fixes a memory leak in OSystem_iOS7::addSysArchivesToSearchSet.
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/ios7/ios7_osys_main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/platform/ios7/ios7_osys_main.cpp b/backends/platform/ios7/ios7_osys_main.cpp
index 37fa34ce33..f169dbb1b2 100644
--- a/backends/platform/ios7/ios7_osys_main.cpp
+++ b/backends/platform/ios7/ios7_osys_main.cpp
@@ -301,8 +301,7 @@ void OSystem_iOS7::addSysArchivesToSearchSet(Common::SearchSet &s, int priority)
Common::String bundlePath((const char *)buf);
#ifdef IPHONE_SANDBOXED
POSIXFilesystemNode *posixNode = new POSIXFilesystemNode(bundlePath);
- Common::FSNode *node = new Common::FSNode(posixNode);
- s.add("__IOS_BUNDLE__", new Common::FSDirectory(*node), priority);
+ s.add("__IOS_BUNDLE__", new Common::FSDirectory(AbstractFSNode::makeFSNode(posixNode)), priority);
#else
s.add("__IOS_BUNDLE__", new Common::FSDirectory(bundlePath), priority);
#endif