hunted some memory leaks (with success)

This commit is contained in:
2010-04-14 22:01:45 +02:00
parent cad9b49ffd
commit ca21f8c63a
15 changed files with 77 additions and 78 deletions
+5
View File
@@ -8,6 +8,7 @@ namespace asteroids {
class Model : public Engine::ModelBase {
public:
virtual ~Model() {};
virtual void Process();
int DoLoadLevel (const char* filename);
int DoSaveLevel (const char* filename);
@@ -26,6 +27,10 @@ class Model : public Engine::ModelBase {
protected:
/** \brief Initializes the system */
virtual int OnInit (int argc, char* argv[]);
virtual void OnDestroy() {
Engine::ModelBase::OnDestroy();
mAsteroids.clear();
};
virtual void OnRegisterCommands ();
virtual void OnCreateEntity (const int type, const unsigned int id);