[#1520] Release previous set buffer when setting a new data source