Delete dead objects from arrayfire