Fixed dangling pointer in ArnoldInterface.

It may be better to use smart point.