aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/pictures.ha1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/pictures.ha b/client/pictures.ha
index f139b28..ce6c600 100644
--- a/client/pictures.ha
+++ b/client/pictures.ha
@@ -102,6 +102,7 @@ fn process_chunk_loadedness(
const pic = pmgr.pictures[i];
if (!is_picture_visible(camera_pos, pic.world_pos)) {
fmt::printfln("## unloading {},{}", pic.world_pos.0, pic.world_pos.1)!;
+ sdl2::SDL_FreeSurface(pmgr.pictures[i].surface);
delete(pmgr.pictures[i]);
};
};