From ff3769cb19995e96789ea8110a6654a61aad1022 Mon Sep 17 00:00:00 2001 From: kimmi Date: Mon, 18 Oct 2010 21:15:35 +0000 Subject: [PATCH] BUGFIX: Fix memory leaks in Q3-bsp loader. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@830 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/Q3BSPFileData.h | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/code/Q3BSPFileData.h b/code/Q3BSPFileData.h index aff4d133f..35d68ac54 100644 --- a/code/Q3BSPFileData.h +++ b/code/Q3BSPFileData.h @@ -186,13 +186,40 @@ struct Q3BSPModel m_Indices(), m_Textures(), m_Lightmaps(), - m_EntityData() + m_EntityData(), + m_ModelName( "" ) { // empty } + + ~Q3BSPModel() + { + for ( unsigned int i=0; i