summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-01-27 09:28:10 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-01-27 09:28:10 +0100
commit5cb48f351fcc1a7c5b11180edcded083176a2431 (patch)
tree00e376d27dc55fe30fb5d34739ca402913fffd1b
parent3c194763acb879f0d51b7d4c90c3aad667223214 (diff)
downloadastra-5cb48f351fcc1a7c5b11180edcded083176a2431.tar.gz
astra-5cb48f351fcc1a7c5b11180edcded083176a2431.tar.bz2
astra-5cb48f351fcc1a7c5b11180edcded083176a2431.tar.xz
astra-5cb48f351fcc1a7c5b11180edcded083176a2431.zip
Use Py_XDECREF to guard against null
-rw-r--r--matlab/mex/astra_mex_plugin_c.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/matlab/mex/astra_mex_plugin_c.cpp b/matlab/mex/astra_mex_plugin_c.cpp
index 9bd4446..a279df8 100644
--- a/matlab/mex/astra_mex_plugin_c.cpp
+++ b/matlab/mex/astra_mex_plugin_c.cpp
@@ -58,7 +58,7 @@ void astra_mex_plugin_init()
// Importing astra may be overkill, since we only need to initialize
// PythonPluginAlgorithmFactory from astra.plugin_c.
PyObject *mod = PyImport_ImportModule("astra");
- Py_DECREF(mod);
+ Py_XDECREF(mod);
}