[filebrowser] fix a memory-related bug