Commit bdb55248 authored by hybrid's avatar hybrid

Fix mem leak found by pc0de

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3460 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 2fe0df76
......@@ -33,13 +33,15 @@ bool CArchiveLoaderMount::isALoadableFileFormat(const io::path& filename) const
if (!fname.size())
return true;
IFileList* list = FileSystem->createFileList();
bool ret = false;
if (list)
{
// check if name is found as directory
if (list->findFile(filename, true))
return true;
ret=true;
list->drop();
}
return false;
return ret;
}
//! Check to see if the loader can create archives of this type.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment