fix memory leak in `do_acvDetectObjects()'