Fix double free in Video::~Video()

pull/5323/head
Maksim Kostin 2023-11-13 12:06:56 +03:00
parent 4535e37fc6
commit 5bd8217d3f
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