Skip to content

Commit

Permalink
TSAGE: Fix memory leak when exiting whilst any palette rotation is ac…
Browse files Browse the repository at this point in the history
…tive
  • Loading branch information
dreammaster committed May 8, 2011
1 parent 3b2c390 commit 0da8f92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engines/tsage/core.cpp
Expand Up @@ -1166,6 +1166,10 @@ ScenePalette::ScenePalette() {
_field412 = 0;
}

ScenePalette::~ScenePalette() {
clearListeners();
}

ScenePalette::ScenePalette(int paletteNum) {
loadPalette(paletteNum);
}
Expand Down
1 change: 1 addition & 0 deletions engines/tsage/core.h
Expand Up @@ -349,6 +349,7 @@ class ScenePalette : public SavedObject {
public:
ScenePalette();
ScenePalette(int paletteNum);
~ScenePalette();

bool loadPalette(int paletteNum);
void refresh();
Expand Down

0 comments on commit 0da8f92

Please sign in to comment.