summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2021-12-02 09:01:18 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2021-12-02 09:01:18 +0000
commitbe51cb6a6e004499321b8ba680dc2e72e69a2a2f (patch)
tree93b44e24e4ce19c349575413e8c81caba30f581e /Source
parentc25df7480751ef49db4eadffc6f45ef77b647572 (diff)
parent160b8c5da38ea2c1ef5c23a45cd4e5f65a2f8ec1 (diff)
downloadswig-be51cb6a6e004499321b8ba680dc2e72e69a2a2f.tar.gz
Merge branch 'fix-crash-2101'
* fix-crash-2101: Added extern "C" block that was removed in previous commit. Fixed crashes when using embedded Python interpreters.
Diffstat (limited to 'Source')
-rw-r--r--Source/Modules/python.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx
index 7d618635e..8682e6917 100644
--- a/Source/Modules/python.cxx
+++ b/Source/Modules/python.cxx
@@ -3424,7 +3424,6 @@ public:
Printf(f_init, "#endif\n");
Printf(f_init, "\t }\n");
Printf(f_init, "\t PyDict_SetItemString(md, \"%s\", globals);\n", global_name);
- Printf(f_init, "\t Py_DECREF(globals);\n");
if (builtin)
Printf(f_init, "\t SwigPyBuiltin_AddPublicSymbol(public_interface, \"%s\");\n", global_name);
have_globals = 1;