Text archives Help
- From: abe@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1572 - trunk/SwigInterface
- Date: Fri, 27 Jul 2007 21:22:01 -0600 (MDT)
Author: abe
Date: Fri Jul 27 21:22:01 2007
New Revision: 1572
Modified:
trunk/SwigInterface/pycallback.cc
Log:
Removed a "goto" statement which didn't compile on gcc? (Presumably it
compiled on Intel...)
M pycallback.cc
Modified: trunk/SwigInterface/pycallback.cc
==============================================================================
--- trunk/SwigInterface/pycallback.cc (original)
+++ trunk/SwigInterface/pycallback.cc Fri Jul 27 21:22:01 2007
@@ -194,7 +194,16 @@
PyErr_Print();
}
Py_DECREF(return_parameters);
- goto cleanup;
+ // goto cleanup; // G++ Doesn't seem to like this.
+#ifdef DECREMENT_PYTHON_REFERENCE_COUNTER
+ // You can't decrement this here, because it could lead to deleted
+ // SWIG proxy classes.
+ Py_DECREF(new_args);
+#endif
+
+ // Done with python code
+ PyGILState_Release(gstate);
+ return;
}
PyTuple_SET_ITEM(new_args, 2, return_parameters);
for(int i = 0; i < num_args; ++i) {
- [MANTA] r1572 - trunk/SwigInterface, abe, 07/27/2007
Archive powered by MHonArc 2.6.16.