Flushes any pending data.
If there is any pending data this function will be called in the release function, otherwise.