| 1 |
diff --git a/src/cairomodule.c b/src/cairomodule.c |
| 2 |
index 21b7b20..181b420 100644 |
| 3 |
--- a/src/cairomodule.c |
| 4 |
+++ b/src/cairomodule.c |
| 5 |
@@ -188,7 +188,8 @@ init_cairo(void) |
| 6 |
if (PyType_Ready(&PycairoPath_Type) < 0) |
| 7 |
return; |
| 8 |
PycairoPathiter_Type.tp_iter=&PyObject_SelfIter; |
| 9 |
- |
| 10 |
+ if (PyType_Ready(&PycairoPathiter_Type) < 0) |
| 11 |
+ return; |
| 12 |
if (PyType_Ready(&PycairoPattern_Type) < 0) |
| 13 |
return; |
| 14 |
if (PyType_Ready(&PycairoSolidPattern_Type) < 0) |
| 15 |
diff --git a/src/context.c b/src/context.c |
| 16 |
index e2c08b5..93b369f 100644 |
| 17 |
--- a/src/context.c |
| 18 |
+++ b/src/context.c |
| 19 |
@@ -1430,7 +1430,7 @@ PyTypeObject PycairoContext_Type = { |
| 20 |
pycairo_methods, /* tp_methods */ |
| 21 |
0, /* tp_members */ |
| 22 |
0, /* tp_getset */ |
| 23 |
- &PyBaseObject_Type, /* tp_base */ |
| 24 |
+ 0, /* tp_base */ |
| 25 |
0, /* tp_dict */ |
| 26 |
0, /* tp_descr_get */ |
| 27 |
0, /* tp_descr_set */ |
| 28 |
diff --git a/src/font.c b/src/font.c |
| 29 |
index 97cf1b3..3fcc9e4 100644 |
| 30 |
--- a/src/font.c |
| 31 |
+++ b/src/font.c |
| 32 |
@@ -131,7 +131,7 @@ PyTypeObject PycairoFontFace_Type = { |
| 33 |
0, /* tp_methods */ |
| 34 |
0, /* tp_members */ |
| 35 |
0, /* tp_getset */ |
| 36 |
- &PyBaseObject_Type, /* tp_base */ |
| 37 |
+ 0, /* tp_base */ |
| 38 |
0, /* tp_dict */ |
| 39 |
0, /* tp_descr_get */ |
| 40 |
0, /* tp_descr_set */ |
| 41 |
@@ -410,7 +410,7 @@ PyTypeObject PycairoScaledFont_Type = { |
| 42 |
scaled_font_methods, /* tp_methods */ |
| 43 |
0, /* tp_members */ |
| 44 |
0, /* tp_getset */ |
| 45 |
- &PyBaseObject_Type, /* tp_base */ |
| 46 |
+ 0, /* tp_base */ |
| 47 |
0, /* tp_dict */ |
| 48 |
0, /* tp_descr_get */ |
| 49 |
0, /* tp_descr_set */ |
| 50 |
@@ -595,7 +595,7 @@ PyTypeObject PycairoFontOptions_Type = { |
| 51 |
font_options_methods, /* tp_methods */ |
| 52 |
0, /* tp_members */ |
| 53 |
0, /* tp_getset */ |
| 54 |
- &PyBaseObject_Type, /* tp_base */ |
| 55 |
+ 0, /* tp_base */ |
| 56 |
0, /* tp_dict */ |
| 57 |
0, /* tp_descr_get */ |
| 58 |
0, /* tp_descr_set */ |
| 59 |
diff --git a/src/matrix.c b/src/matrix.c |
| 60 |
index eefeab9..2ec5e2d 100644 |
| 61 |
--- a/src/matrix.c |
| 62 |
+++ b/src/matrix.c |
| 63 |
@@ -332,7 +332,7 @@ PyTypeObject PycairoMatrix_Type = { |
| 64 |
matrix_methods, /* tp_methods */ |
| 65 |
0, /* tp_members */ |
| 66 |
0, /* tp_getset */ |
| 67 |
- &PyBaseObject_Type, /* tp_base */ |
| 68 |
+ 0, /* tp_base */ |
| 69 |
0, /* tp_dict */ |
| 70 |
0, /* tp_descr_get */ |
| 71 |
0, /* tp_descr_set */ |
| 72 |
diff --git a/src/path.c b/src/path.c |
| 73 |
index 97ca35c..2d1bcf5 100644 |
| 74 |
--- a/src/path.c |
| 75 |
+++ b/src/path.c |
| 76 |
@@ -206,7 +206,7 @@ PyTypeObject PycairoPath_Type = { |
| 77 |
0, /* tp_methods */ |
| 78 |
0, /* tp_members */ |
| 79 |
0, /* tp_getset */ |
| 80 |
- &PyBaseObject_Type, /* tp_base */ |
| 81 |
+ 0, /* tp_base */ |
| 82 |
0, /* tp_dict */ |
| 83 |
0, /* tp_descr_get */ |
| 84 |
0, /* tp_descr_set */ |
| 85 |
diff --git a/src/pattern.c b/src/pattern.c |
| 86 |
index 229e218..cebf0c9 100644 |
| 87 |
--- a/src/pattern.c |
| 88 |
+++ b/src/pattern.c |
| 89 |
@@ -194,7 +194,7 @@ PyTypeObject PycairoPattern_Type = { |
| 90 |
pattern_methods, /* tp_methods */ |
| 91 |
0, /* tp_members */ |
| 92 |
0, /* tp_getset */ |
| 93 |
- &PyBaseObject_Type, /* tp_base */ |
| 94 |
+ 0, /* tp_base */ |
| 95 |
0, /* tp_dict */ |
| 96 |
0, /* tp_descr_get */ |
| 97 |
0, /* tp_descr_set */ |
| 98 |
diff --git a/src/surface.c b/src/surface.c |
| 99 |
index 568aad7..fa11413 100644 |
| 100 |
--- a/src/surface.c |
| 101 |
+++ b/src/surface.c |
| 102 |
@@ -370,7 +370,7 @@ PyTypeObject PycairoSurface_Type = { |
| 103 |
surface_methods, /* tp_methods */ |
| 104 |
0, /* tp_members */ |
| 105 |
0, /* tp_getset */ |
| 106 |
- &PyBaseObject_Type, /* tp_base */ |
| 107 |
+ 0, /* tp_base */ |
| 108 |
0, /* tp_dict */ |
| 109 |
0, /* tp_descr_get */ |
| 110 |
0, /* tp_descr_set */ |