gallium/hud: fix a problem where objects are free'd while in use.