Skip to content

Commit c37b9cd

Browse files
committed
Replace AddObject with AddObjectRef
1 parent f67ce18 commit c37b9cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src_c/font.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,7 @@ MODINIT_DEFINE(font)
14441444
c_api[0] = &PyFont_Type;
14451445
c_api[1] = PyFont_New;
14461446
c_api[2] = &font_initialized;
1447+
apiobj = encapsulate_api(c_api, "font");
14471448
if (PyModule_AddObjectRef(module, PYGAMEAPI_LOCAL_ENTRY, apiobj)) {
14481449
Py_DECREF(module);
14491450
return NULL;

0 commit comments

Comments
 (0)