diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-01-27 09:28:10 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2016-01-27 09:28:10 +0100 |
commit | 5cb48f351fcc1a7c5b11180edcded083176a2431 (patch) | |
tree | 00e376d27dc55fe30fb5d34739ca402913fffd1b /matlab/mex | |
parent | 3c194763acb879f0d51b7d4c90c3aad667223214 (diff) | |
download | astra-5cb48f351fcc1a7c5b11180edcded083176a2431.tar.gz astra-5cb48f351fcc1a7c5b11180edcded083176a2431.tar.bz2 astra-5cb48f351fcc1a7c5b11180edcded083176a2431.tar.xz astra-5cb48f351fcc1a7c5b11180edcded083176a2431.zip |
Use Py_XDECREF to guard against null
Diffstat (limited to 'matlab/mex')
-rw-r--r-- | matlab/mex/astra_mex_plugin_c.cpp | 2 |
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); } |