How does this work? Using a vector of shared_pts and then just call vector.clear()?