HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do you get rid of these locals?

08-20-2004, 08:27 PM#1
Lil Blue Smurf
if I have:
local integer x
local integer array y
local unit z

I figure they leak... so how do you go about destroying them? I am new to jass so all I know is DestroyGroup and RemoveLocation. Or are group and locations all that leak?
08-20-2004, 09:26 PM#2
weaaddar
you are in bizzaro world if you think local primitives leak.

The only one of concern is the local unit z. If you have no use for him remove the unit, if you still have use for it merely at the end of the function set z=null.
08-20-2004, 09:33 PM#3
Lil Blue Smurf
K thanks... I have never really programed so I had no idea...