mirror of https://github.com/skeeto/pixelcity.git
Fixed memory leak with Light Strips. (Streetlights)
This commit is contained in:
parent
f862528b28
commit
8a41cecf01
12
Deco.cpp
12
Deco.cpp
|
@ -31,6 +31,18 @@
|
||||||
#include "world.h"
|
#include "world.h"
|
||||||
#include "visible.h"
|
#include "visible.h"
|
||||||
|
|
||||||
|
|
||||||
|
/*-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
CDeco::~CDeco ()
|
||||||
|
{
|
||||||
|
|
||||||
|
delete _mesh;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------
|
/*-----------------------------------------------------------------------------
|
||||||
|
|
||||||
-----------------------------------------------------------------------------*/
|
-----------------------------------------------------------------------------*/
|
||||||
|
|
2
Deco.h
2
Deco.h
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
class CDeco : CEntity
|
class CDeco : CEntity
|
||||||
{
|
{
|
||||||
// CDeco* _next;
|
|
||||||
GLrgba _color;
|
GLrgba _color;
|
||||||
class CMesh* _mesh;
|
class CMesh* _mesh;
|
||||||
int _type;
|
int _type;
|
||||||
|
@ -14,6 +13,7 @@ class CDeco : CEntity
|
||||||
public:
|
public:
|
||||||
|
|
||||||
CDeco ();
|
CDeco ();
|
||||||
|
~CDeco ();
|
||||||
void CreateLogo (GLvector2 start, GLvector2 end, float base, int seed, GLrgba color);
|
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 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);
|
void CreateLightTrim (GLvector* chain, int count, float height, int seed, GLrgba color);
|
||||||
|
|
Loading…
Reference in New Issue