Merge "libgui: Fix attaching buffers without allocation"