diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-28 17:41:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-28 17:41:57 +0300 |
commit | 781c9bee8328a3f298a6ea443c0273042cffc294 (patch) | |
tree | 047a0348cff4277a64f40d92ef7250e4b898610c /src/resources/loaders | |
parent | 133dd542a3b569a1f5ff1b07097c355931796485 (diff) | |
download | manaverse-781c9bee8328a3f298a6ea443c0273042cffc294.tar.gz manaverse-781c9bee8328a3f298a6ea443c0273042cffc294.tar.bz2 manaverse-781c9bee8328a3f298a6ea443c0273042cffc294.tar.xz manaverse-781c9bee8328a3f298a6ea443c0273042cffc294.zip |
Fix file handlers leak in xmlloader.
Diffstat (limited to 'src/resources/loaders')
-rw-r--r-- | src/resources/loaders/xmlloader.cpp | 7 |
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); |