vf_overlay: prevent premature freeing of cur_buf