You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
I don't think this would cause a memory leak. The FileList will be cleared automaticly. But the s32 count = (s32)FileList.size(); line is really senseless.