From 11c8b134d7de3d7b2249d74b26a87bc9d6acc27d Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 22 Apr 2024 00:34:20 +0100 Subject: rle --- client/pictures.ha | 1 + 1 file changed, 1 insertion(+) (limited to 'client/pictures.ha') 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]); }; }; -- cgit v1.2.3