diff options
-rw-r--r-- | gobject/pygboxed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gobject/pygboxed.c b/gobject/pygboxed.c index 8a4c8a8..1233b01 100644 --- a/gobject/pygboxed.c +++ b/gobject/pygboxed.c @@ -194,7 +194,8 @@ pyg_boxed_new(GType boxed_type, gpointer boxed, gboolean copy_boxed, if (!tp) tp = (PyTypeObject *)&PyGBoxed_Type; /* fallback */ - self = PyObject_NEW(PyGBoxed, tp); + + self = (PyGBoxed *)tp->tp_alloc(tp, 0); if (self == NULL) { pyglib_gil_state_release(state); |