• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker 【SOLVE】Repeatedly creating and destroying data structures can result in memory leaks

M

mather12

Guest
You can try repeat this code in step event in any instance :
var _m=ds_map_create();
_m[? 0]=1;
ds_map_destroy(_m);

I use this method on a large scale in my code, and now this causes a memory leak. What should I do?
 

Mert

Member
That should not over-inflate your ram. Everything gets destroyed and re-created.
How did you test that your application leaks memory ?
 
Top