Fixed memory leak with Light Strips. (Streetlights)

This commit is contained in:
Shamus Young 2009-05-06 11:15:15 +00:00
parent f862528b28
commit 8a41cecf01
2 changed files with 13 additions and 1 deletions

View File

@ -31,6 +31,18 @@
#include "world.h"
#include "visible.h"
/*-----------------------------------------------------------------------------
-----------------------------------------------------------------------------*/
CDeco::~CDeco ()
{
delete _mesh;
}
/*-----------------------------------------------------------------------------
-----------------------------------------------------------------------------*/

2
Deco.h
View File

@ -4,7 +4,6 @@
class CDeco : CEntity
{
// CDeco* _next;
GLrgba _color;
class CMesh* _mesh;
int _type;
@ -14,6 +13,7 @@ class CDeco : CEntity
public:
CDeco ();
~CDeco ();
void CreateLogo (GLvector2 start, GLvector2 end, float base, int seed, GLrgba color);
void CreateLightStrip (float x, float z, float width, float depth, float height, GLrgba color);
void CreateLightTrim (GLvector* chain, int count, float height, int seed, GLrgba color);