Fixed sampler state ref leak.