Type on two lists

BlitzMax Forums/BlitzMax Programming/Type on two lists

slenkar(Posted 2008) [#1]
If a type instance is on two lists do you have to remove it from both to delete it?


Gabriel(Posted 2008) [#2]
Yes.


slenkar(Posted 2008) [#3]
thanks, i think im getting the hang of it now,

to free an image or sound i have to remove all variables that point to it right?


tonyg(Posted 2008) [#4]
or let them go out of scope.


deps(Posted 2008) [#5]
... so yes. :)
Remove them from lists. For all other variables and arrays (Global ones) just set them to null.
Local variables inside functions/methods can safely be ignored if you should want to. Since as soon as the function/method returns it will go out of scope and any local varaible will be freed.


slenkar(Posted 2008) [#6]
ok thanks for the explanation