The pinching-off of dislocation dipoles by glide