mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +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;
|
daeElement *accessor;
|
||||||
|
|
||||||
accessor = uri.getContainer();
|
accessor = uri.getContainer();
|
||||||
if ( accessor == NULL )
|
if (accessor == NULL)
|
||||||
return NULL;
|
{
|
||||||
|
fclose(rawFile);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
src = accessor->getParentElement()->getParentElement();
|
src = accessor->getParentElement()->getParentElement();
|
||||||
daeElementRefArray children;
|
daeElementRefArray children;
|
||||||
accessor->getChildren( children );
|
accessor->getChildren( children );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue