For consistency, use gnulib's memory allocation functions in the gui.