diff options
author | Martijn Versteegh <Baardaap> | 2021-11-01 13:43:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-11-01 14:16:34 +0300 |
commit | 3df587b798a4dc33df0311ca3793f3c4aa441c72 (patch) | |
tree | 065be76c92cd0fe95a2ac44bdfd9a73ee99d2c22 /source | |
parent | 2a4dfaa0e962d69345398833ea2f1b831fc6c202 (diff) |
Fix T92681: resolve use of freed filedescriptor in debug builds
Ref D13053
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 600abcca818..e4fe3e8da00 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -1351,7 +1351,6 @@ FileData *blo_filedata_from_memfile(MemFile *memfile, void blo_filedata_free(FileData *fd) { if (fd) { - fd->file->close(fd->file); /* Free all BHeadN data blocks */ #ifndef NDEBUG @@ -1365,6 +1364,7 @@ void blo_filedata_free(FileData *fd) MEM_freeN(new_bhead); } #endif + fd->file->close(fd->file); if (fd->filesdna) { DNA_sdna_free(fd->filesdna); |