GMS 2 Will this cause a memory leak?

Hi Guys,

Help me clear something up, I am using a script to find the nearest object, However I noticed when called it does a DS_grid_create.

now usually this may not cause an Issue but im calling the thing ALOT!

I take it that this thing firing off every frame is NOT good!?

its not major but .5 MB every minute in memory usage.

Im correct right!?
 
Well it was declared as a Variable and the script returns a value from the grid so no it was not running a DS_destroy or Clear no. I got around it by just declaring it in my room creation code.
 
Top