ensure destroying the temporary fbuf
make it look slightly better