Latent heat of the SU(3) gauge theory