ACCESS: Fix memory leaks
This commit is contained in:
parent
f75fa68c05
commit
4c71b12e02
3 changed files with 6 additions and 2 deletions
|
@ -78,6 +78,10 @@ Debugger::Debugger(AccessEngine *vm) : GUI::Debugger(), _vm(vm) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Debugger::~Debugger() {
|
||||||
|
delete[] _sceneDescr;
|
||||||
|
}
|
||||||
|
|
||||||
bool Debugger::Cmd_LoadScene(int argc, const char **argv) {
|
bool Debugger::Cmd_LoadScene(int argc, const char **argv) {
|
||||||
switch (argc) {
|
switch (argc) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
static Debugger *init(AccessEngine *vm);
|
static Debugger *init(AccessEngine *vm);
|
||||||
public:
|
public:
|
||||||
Debugger(AccessEngine *vm);
|
Debugger(AccessEngine *vm);
|
||||||
virtual ~Debugger() {}
|
virtual ~Debugger();
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace Amazon {
|
namespace Amazon {
|
||||||
|
|
|
@ -55,7 +55,7 @@ Resource::Resource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Resource::~Resource() {
|
Resource::~Resource() {
|
||||||
delete _data;
|
delete[] _data;
|
||||||
delete _stream;
|
delete _stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue