Skip to content

Commit

Permalink
Fix double free in Video::~Video()
Browse files Browse the repository at this point in the history
  • Loading branch information
ttxine authored and kimkulling committed Dec 1, 2023
1 parent e765862 commit d311fa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/AssetLib/FBX/FBXMaterial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d311fa9

Please sign in to comment.