Do I need to free resources on app end?

Post Reply
BlyZe
Posts: 6
Joined: Mon Sep 09, 2024 7:04 am

Do I need to free resources on app end?

Post by BlyZe » Wed Sep 18, 2024 3:51 pm

Title.


WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Do I need to free resources on app end?

Post by WinterMute » Sun Oct 27, 2024 11:16 am

This is generally good practice, especially if you want your code to work on multiple platforms. It's quite a vague question though. Was there something specific you wanted to do.

Help keep devkitPro toolchains free, Donate today

Personal Blog

BlyZe
Posts: 6
Joined: Mon Sep 09, 2024 7:04 am

Re: Do I need to free resources on app end?

Post by BlyZe » Sun Oct 27, 2024 5:35 pm

No. I just wanted to know if it's bad not to free for example the C2D_SpriteSheet on app end.
Or in other words are the resources used by my app automatically cleared after closing or are the resources still reserved?


User avatar
fincs
( ͡° ͜ʖ ͡°)
Posts: 103
Joined: Mon Jul 12, 2010 9:45 pm
Location: Seville, Spain
Contact:

Re: Do I need to free resources on app end?

Post by fincs » Sun Oct 27, 2024 7:49 pm

While freeing heap resources on exit generally doesn't matter, is there any particular reason why you're trying to figure out if it's ok to avoid freeing resources? Could you post code, so that we can understand where you're coming from a bit better?

Donate to devkitPro - help us stay alive!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests