Don't leak the pulsesink element by having the clock keep a ref to the sink. Create the clock only once in the constructor and use the baseaudiosink clock cleanup code.