Shouldn't unref the passed-in `file` parameter here.