From 694cf75070b713d9c1a219b10889b9529a7c7563 Mon Sep 17 00:00:00 2001 From: kimmi Date: Tue, 20 Mar 2012 21:12:38 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix=20:=20Fixed=20a=20possibly=20crash=20bug?= =?UTF-8?q?=20in=20~aiExportDataBlob,=20was=20using=20a=20wrong=20delete.?= =?UTF-8?q?=20(=20merged=20from=20GitHub,=20thanks=20to=20Riku=20Palom?= =?UTF-8?q?=C3=A4ki=20).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1224 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- include/assimp/cexport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/assimp/cexport.h b/include/assimp/cexport.h index 4050b438e..09d6664e7 100644 --- a/include/assimp/cexport.h +++ b/include/assimp/cexport.h @@ -204,7 +204,7 @@ struct aiExportDataBlob /// Default constructor aiExportDataBlob() { size = 0; data = next = NULL; } /// Releases the data - ~aiExportDataBlob() { delete static_cast( data ); delete next; } + ~aiExportDataBlob() { delete [] static_cast( data ); delete next; } private: // no copying