summaryrefslogtreecommitdiff
path: root/sprite.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprite.c')
-rw-r--r--sprite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sprite.c b/sprite.c
index 2d76b7527..47d0c1c8b 100644
--- a/sprite.c
+++ b/sprite.c
@@ -132,6 +132,8 @@ void UnloadSpriteGroup(SpriteGroup **group_ptr)
for (i = 0; i < rsg->loaded_count; i++) {
if (rsg->loaded[i] != NULL) UnloadSpriteGroup(&rsg->loaded[i]);
}
+ free(group->g.real.loaded);
+ free(group->g.real.loading);
free(group);
return;
}