X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Fblockcache.c;h=ecfe80e870ca7133e0e62009c067b68a8f34dec9;hb=878e6cda26bbf4af5090a01709db026d42c233b4;hp=d72d64e0033468b35101c9b37d434c0d5f6a71e8;hpb=672e715c3f3d799e75f3f4a2f9f0db975cdc5e4b;p=pcsx_rearmed.git diff --git a/deps/lightrec/blockcache.c b/deps/lightrec/blockcache.c index d72d64e0..ecfe80e8 100644 --- a/deps/lightrec/blockcache.c +++ b/deps/lightrec/blockcache.c @@ -159,9 +159,14 @@ void lightrec_remove_outdated_blocks(struct blockcache *cache, lightrec_free_blocks(cache, except, false); } -void lightrec_free_block_cache(struct blockcache *cache) +void lightrec_free_all_blocks(struct blockcache *cache) { lightrec_free_blocks(cache, NULL, true); +} + +void lightrec_free_block_cache(struct blockcache *cache) +{ + lightrec_free_all_blocks(cache); lightrec_free(cache->state, MEM_FOR_LIGHTREC, sizeof(*cache), cache); }