Added deleterefs for the file data callback