I am looking for Free() or Destroy() or similar to destroy an object that was created by New(). Or does UT have a garbage collector for this? (And Wiki is down again...)
UnrealScript is a garbage-collected language for everything that is not an Actor. In other words, you cannot destroy non-actor objects in any effective way. To get rid of them, clear all references to them and let the garbage collector do its job. The GC either runs on map change or when explicitly telling it to do its job through console command "obj garbage". Note that the Unreal Engine's garbage collector is a stop-the-world implementation prior to Unreal Engine 3.
Thanks for the replies - so I will leave old stuff untouched then.
The reason for my question was that I replaced some static arrays by double linked lists (similar to class Object.ListItem) because of unknown item count while developing. Deleting list items may occur, but not often in the areas I use these lists.
(And yes, I know what cache misses are. ;o))
<edit>PS: the last time I messed around with linked lists was with Turbo Pascal and DOS...</edit>
Cheers,
Barbie
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett