summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/ext/noddy.c1
-rw-r--r--Doc/ext/noddy2.c1
-rw-r--r--Doc/ext/noddy3.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/Doc/ext/noddy.c b/Doc/ext/noddy.c
index 849b3c9..632d8e1 100644
--- a/Doc/ext/noddy.c
+++ b/Doc/ext/noddy.c
@@ -65,5 +65,6 @@ initnoddy(void)
m = Py_InitModule3("noddy", noddy_methods,
"Example module that creates an extension type.");
+ Py_INCREF(&noddy_NoddyType);
PyModule_AddObject(m, "Noddy", (PyObject *)&noddy_NoddyType);
}
diff --git a/Doc/ext/noddy2.c b/Doc/ext/noddy2.c
index b1e620e..fcce2ab 100644
--- a/Doc/ext/noddy2.c
+++ b/Doc/ext/noddy2.c
@@ -184,5 +184,6 @@ initnoddy2(void)
if (m == NULL)
return;
+ Py_INCREF(&NoddyType);
PyModule_AddObject(m, "Noddy", (PyObject *)&NoddyType);
}
diff --git a/Doc/ext/noddy3.c b/Doc/ext/noddy3.c
index 7b044d1..08ac31e 100644
--- a/Doc/ext/noddy3.c
+++ b/Doc/ext/noddy3.c
@@ -237,5 +237,6 @@ initnoddy3(void)
if (m == NULL)
return;
+ Py_INCREF(&NoddyType);
PyModule_AddObject(m, "Noddy", (PyObject *)&NoddyType);
}