summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/dye/dye_unittest.cc2
-rw-r--r--src/resources/sprite/animatedsprite_unittest.cc3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/dye/dye_unittest.cc b/src/resources/dye/dye_unittest.cc
index 6b6f1719a..06abc09c7 100644
--- a/src/resources/dye/dye_unittest.cc
+++ b/src/resources/dye/dye_unittest.cc
@@ -304,6 +304,8 @@ static void dyeCheck(const std::string &dyeString,
{
REQUIRE(ptr1[idx] == ptr2[idx]);
}
+ image2->decRef();
+ image1->decRef();
}
TEST_CASE("Dye real dye")
diff --git a/src/resources/sprite/animatedsprite_unittest.cc b/src/resources/sprite/animatedsprite_unittest.cc
index 8601bed17..b59b4dbbb 100644
--- a/src/resources/sprite/animatedsprite_unittest.cc
+++ b/src/resources/sprite/animatedsprite_unittest.cc
@@ -89,6 +89,7 @@ TEST_CASE("AnimatedSprite tests", "animatedsprite")
REQUIRE(false == sprite->update(11));
REQUIRE(10 == sprite->getFrameTime());
REQUIRE(0 == sprite->getFrameIndex());
+ delete(sprite);
}
SECTION("basic test 2")
@@ -149,6 +150,7 @@ TEST_CASE("AnimatedSprite tests", "animatedsprite")
REQUIRE(true == sprite->update(1 + 10 + 20 + 10 + 25 + 10 + 10 + 1));
REQUIRE(4 == sprite->getFrameIndex());
REQUIRE(1 == sprite->getFrameTime());
+ delete(sprite);
}
SECTION("basic test 3")
@@ -166,6 +168,7 @@ TEST_CASE("AnimatedSprite tests", "animatedsprite")
REQUIRE(true == sprite2->update(1 + 10 + 20 + 10 + 25 + 10 + 10 + 1));
REQUIRE(1 == sprite2->getFrameIndex());
REQUIRE(1 == sprite2->getFrameTime());
+ delete(sprite2);
}
delete client;