safeDelete
Safely deletes a native SWIG object. Guards against null, already-deleted objects, and any native exception that may occur if the underlying C++ object was already freed.
Parameters
obj
the SWIG-wrapped native object to delete, may be null