possible memory leak in addFiles() fixed.