Bugfix : Fixed a possibly crash bug in ~aiExportDataBlob, was using a wrong delete. ( merged from GitHub, thanks to Riku Palomäki ).
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1224 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/5/head
parent
d17071746d
commit
694cf75070
|
@ -204,7 +204,7 @@ struct aiExportDataBlob
|
|||
/// Default constructor
|
||||
aiExportDataBlob() { size = 0; data = next = NULL; }
|
||||
/// Releases the data
|
||||
~aiExportDataBlob() { delete static_cast<char*>( data ); delete next; }
|
||||
~aiExportDataBlob() { delete [] static_cast<unsigned char*>( data ); delete next; }
|
||||
|
||||
private:
|
||||
// no copying
|
||||
|
|
Loading…
Reference in New Issue