summaryrefslogtreecommitdiff
path: root/test/testsprite2.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2013-08-29 08:29:21 -0700
committerSam Lantinga <slouken@libsdl.org>2013-08-29 08:29:21 -0700
commit753aae78fc634a831d302657d79d089bd2e6a563 (patch)
treea50d1ecbd6f5035ba7121b3b04fca258e7ed4da1 /test/testsprite2.c
parent79bc5ff6ac7c6a2acd28566acd2ef689ef5d1f6d (diff)
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
Diffstat (limited to 'test/testsprite2.c')
-rw-r--r--test/testsprite2.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/testsprite2.c b/test/testsprite2.c
index 26cc29f663..b40efd3f87 100644
--- a/test/testsprite2.c
+++ b/test/testsprite2.c
@@ -42,15 +42,9 @@ static int iterations = -1;
static void
quit(int rc)
{
- if (sprites) {
- SDL_free(sprites);
- }
- if (positions) {
- SDL_free(positions);
- }
- if (velocities) {
- SDL_free(velocities);
- }
+ SDL_free(sprites);
+ SDL_free(positions);
+ SDL_free(velocities);
SDLTest_CommonQuit(state);
exit(rc);
}