view: release ref to the buffer in dispose()

This commit simplifies the code, there is no need for destroy() and
finalize(). dispose() is enough. References should be released in
dispose().