I have an audio folder with a few wav files that are loaded in C++ using LoadObject(). After some recent changes, after I press ESC to exit the game in the editor, that there are zombie audio files that are empty called “None” in the content browser (which disappear if I quit and reload) - see image. I also cannot load the audio files if I run again till I restart. Any ideas what causes this?
Additional info: when I create the audio files, I use UObject::AddToRoot() to prevent GC. When I tear down, I call UObject::ConditionalBeginDestroy(). If I take the latter call away, the zombie files don’t appear. But won’t I be leaking memory, or does the root set get destroyed at exit?
did you tried calling RemoveFromRoot() before remove attempt?
I shall try that this evening. Thx!