mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-08 06:50:42 +00:00
Update ImageAsset.cpp
the opened ddsfs file for pulling metadata was leaking. The FileStream function close does not delete the pointer to the original file only FileObject does this. It might be worthwhile instead to switch to using fileObject anywhere we use a filestream that way we can be at least somewhat safe in using the object and once it goes out of scope the raw pointer will be freed
This commit is contained in:
parent
88da6f60f6
commit
57766ba649
1 changed files with 1 additions and 1 deletions
|
|
@ -669,8 +669,8 @@ void ImageAsset::populateImage(void)
|
|||
mImageHeight = tempFile->mHeight;
|
||||
}
|
||||
|
||||
ddsFs->close();
|
||||
delete tempFile;
|
||||
delete ddsFs;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue