[buffer] Add missing destroy() declaration