aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/state.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-02-27 19:38:20 +0000
committerWillem Jan Palenstijn2009-02-27 19:38:20 +0000
commitfb552121d234ab200caf8857f007df57085ca7ec (patch)
treede52e69df49a35c9d5730ef1253e975aa9cfed57 /engines/sci/engine/state.h
parentede680738b5594d8400bb3c60f284d6c1020cdda (diff)
downloadscummvm-rg350-fb552121d234ab200caf8857f007df57085ca7ec.tar.gz
scummvm-rg350-fb552121d234ab200caf8857f007df57085ca7ec.tar.bz2
scummvm-rg350-fb552121d234ab200caf8857f007df57085ca7ec.zip
fix warnings and memleaks in savegame.cfsml
svn-id: r38933
Diffstat (limited to 'engines/sci/engine/state.h')
-rw-r--r--engines/sci/engine/state.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/engine/state.h b/engines/sci/engine/state.h
index 8d49b0b184..173059f042 100644
--- a/engines/sci/engine/state.h
+++ b/engines/sci/engine/state.h
@@ -86,7 +86,9 @@ struct drawn_pic_t {
// Savegame metadata
struct SavegameMetadata {
- const char *savegame_name;
+ SavegameMetadata() : savegame_name(0), game_version(0) { }
+ ~SavegameMetadata() { free(savegame_name); free(game_version); }
+ char *savegame_name;
int savegame_version;
char *game_version;
sci_version_t version;