buffer: improve error handling
buffer: improve error handling

In case the texture can't be imported, release the buffer so that the
client can submit another one. In case the allocation fails, disconnect
the client.

swaywm/wlroots,ascent12/wlroots,SirCmpwn/wlroots,ascent12/wlroots,swaywm/wlroots