Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Pinhole memory leak with ds_priority_destroy never happening?

A topic by sitebender created Jun 19, 2022 Views: 181 Replies: 1
Viewing posts 1 to 2

There seems to be a memory leak.

Developer

Technically true, but pinhole is maybe even a bit of an exaggeration.
The system is sort of designed to be instantiated on game start and then just... stay in place for the duration of the game. So you should never re-init the system, and you don't need to clean up the stack when the game is closed because the OS will clean up any and all memory the game is using.

You are welcome to call ds_priority_destroy in the game_end event if you'd like, but I just thought it unnecessary.