Fix double free in Video::~Video()

pull/5333/head^2
Maksim Kostin 2023-11-13 12:06:56 +03:00 committed by Kim Kulling
parent e765862d24
commit d311fa95c6
1 changed files with 3 additions and 1 deletions

View File

@ -367,8 +367,10 @@ Video::Video(uint64_t id, const Element &element, const Document &doc, const std
} }
Video::~Video() { Video::~Video() {
if (contentLength > 0) {
delete[] content; delete[] content;
} }
}
} //!FBX } //!FBX
} //!Assimp } //!Assimp