summaryrefslogtreecommitdiff
path: root/Doc/ext/noddy.c
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/ext/noddy.c')
-rw-r--r--Doc/ext/noddy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/ext/noddy.c b/Doc/ext/noddy.c
index 849b3c91ba..632d8e1559 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);
}