summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
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 */