Who's responsible for freeing the sampler?  

Everywhere else, we've tried to follow the RAII pattern:

http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization