summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-28 17:41:57 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-28 17:41:57 +0300
commit781c9bee8328a3f298a6ea443c0273042cffc294 (patch)
tree047a0348cff4277a64f40d92ef7250e4b898610c /src/resources
parent133dd542a3b569a1f5ff1b07097c355931796485 (diff)
downloadmv-781c9bee8328a3f298a6ea443c0273042cffc294.tar.gz
mv-781c9bee8328a3f298a6ea443c0273042cffc294.tar.bz2
mv-781c9bee8328a3f298a6ea443c0273042cffc294.tar.xz
mv-781c9bee8328a3f298a6ea443c0273042cffc294.zip
Fix file handlers leak in xmlloader.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/loaders/xmlloader.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/resources/loaders/xmlloader.cpp b/src/resources/loaders/xmlloader.cpp
index de227a1cb..5623e807e 100644
--- a/src/resources/loaders/xmlloader.cpp
+++ b/src/resources/loaders/xmlloader.cpp
@@ -43,13 +43,6 @@ namespace
return nullptr;
const ResourceLoader *const
rl = static_cast<const ResourceLoader *const>(v);
- SDL_RWops *const rw = MPHYSFSRWOPS_openRead(rl->path.c_str());
- if (!rw)
- {
- reportAlways("Error loading resource: %s",
- rl->path.c_str());
- return nullptr;
- }
Resource *const res = new XML::Document(rl->path,
rl->useResman,
rl->skipError);