diff options
author | ubq323 <ubq323@ubq323.website> | 2024-04-22 00:34:20 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-04-22 00:34:20 +0100 |
commit | 11c8b134d7de3d7b2249d74b26a87bc9d6acc27d (patch) | |
tree | 7d6d646c73c893f1e978a6f4aecbeeb41a7f80c4 /client | |
parent | c13872d6ef54af30fa476cb690ebc7d5725c0537 (diff) |
rle
Diffstat (limited to 'client')
-rw-r--r-- | client/pictures.ha | 1 |
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]); }; }; |