mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Merge pull request #2171 from chaigler/dae_file_leak_fix
Fix for daeRawResolver resource leak
This commit is contained in:
commit
d9d847948a
1 changed files with 5 additions and 2 deletions
|
|
@ -57,8 +57,11 @@ daeElement* daeRawResolver::resolveElement(const daeURI& uri) {
|
|||
daeElement *accessor;
|
||||
|
||||
accessor = uri.getContainer();
|
||||
if ( accessor == NULL )
|
||||
return NULL;
|
||||
if (accessor == NULL)
|
||||
{
|
||||
fclose(rawFile);
|
||||
return NULL;
|
||||
}
|
||||
src = accessor->getParentElement()->getParentElement();
|
||||
daeElementRefArray children;
|
||||
accessor->getChildren( children );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue