diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-05 21:45:27 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-05 21:45:27 +0000 |
commit | 4a43cb1c6e5ba304d70df7066c61c52718a5f249 (patch) | |
tree | d8aca0414b771cb2b7532d6f4f9d2ed87f77d703 /src/main.cpp | |
parent | 8415f7791ea8dc84148c65d04c288d8d12eb50bf (diff) | |
download | mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.tar.gz mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.tar.bz2 mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.tar.xz mana-4a43cb1c6e5ba304d70df7066c61c52718a5f249.zip |
Fixed some resource cleanup and memory leaks. Also changed the way dangling
references to resources are reported to be more informative.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index a6fef07c..31a1b232 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -271,6 +271,9 @@ void init_engine() playerset = new Spriteset(playerImg, 64, 64); hairset = new Spriteset(hairImg, 40, 40); + playerImg->decRef(); + hairImg->decRef(); + gui = new Gui(graphics); state = UPDATE_STATE; /**< Initial game state */ |