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,7 +367,9 @@ Video::Video(uint64_t id, const Element &element, const Document &doc, const std
}
Video::~Video() {
delete[] content;
if (contentLength > 0) {
delete[] content;
}
}
} //!FBX