diff options
author | Colin Snover | 2017-11-14 12:52:22 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | 5c89c39325f271a5ef4dcb55fbc013b3858791d5 (patch) | |
tree | 9b8257d1bf8b6475c4ca38e868743b3a83d91741 /engines/fullpipe/gameloader.h | |
parent | ff96db23dfd9e2075a710786fa0b1a01c6759a02 (diff) | |
download | scummvm-rg350-5c89c39325f271a5ef4dcb55fbc013b3858791d5.tar.gz scummvm-rg350-5c89c39325f271a5ef4dcb55fbc013b3858791d5.tar.bz2 scummvm-rg350-5c89c39325f271a5ef4dcb55fbc013b3858791d5.zip |
FULLPIPE: Fix memory leak of save game thumbnail
Diffstat (limited to 'engines/fullpipe/gameloader.h')
-rw-r--r-- | engines/fullpipe/gameloader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/fullpipe/gameloader.h b/engines/fullpipe/gameloader.h index 5e4d931409..39ccb7784c 100644 --- a/engines/fullpipe/gameloader.h +++ b/engines/fullpipe/gameloader.h @@ -23,6 +23,7 @@ #ifndef FULLPIPE_GAMELOADER_H #define FULLPIPE_GAMELOADER_H +#include "common/ptr.h" #include "engines/savestate.h" #include "fullpipe/objects.h" @@ -83,7 +84,7 @@ struct FullpipeSavegameHeader { uint32 date; uint16 time; uint32 playtime; - Graphics::Surface *thumbnail; + Common::SharedPtr<Graphics::Surface> thumbnail; }; struct SaveHeader { |