Fix double free in Video::~Video()
parent
e765862d24
commit
d311fa95c6
|
@ -367,7 +367,9 @@ Video::Video(uint64_t id, const Element &element, const Document &doc, const std
|
||||||
}
|
}
|
||||||
|
|
||||||
Video::~Video() {
|
Video::~Video() {
|
||||||
delete[] content;
|
if (contentLength > 0) {
|
||||||
|
delete[] content;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} //!FBX
|
} //!FBX
|
||||||
|
|
Loading…
Reference in New Issue