diff options
-rw-r--r-- | _dbus_bindings/conn.c | 1 | ||||
-rw-r--r-- | _dbus_bindings/server.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/_dbus_bindings/conn.c b/_dbus_bindings/conn.c index 40f6cf5..2e40bac 100644 --- a/_dbus_bindings/conn.c +++ b/_dbus_bindings/conn.c @@ -232,6 +232,7 @@ DBusPyConnection_NewConsumingDBusConnection(PyTypeObject *cls, self->has_mainloop = (mainloop != Py_None); self->conn = NULL; self->filters = PyList_New(0); + self->weaklist = NULL; if (!self->filters) goto err; self->object_paths = PyDict_New(); if (!self->object_paths) goto err; diff --git a/_dbus_bindings/server.c b/_dbus_bindings/server.c index 20c3d49..9d7385f 100644 --- a/_dbus_bindings/server.c +++ b/_dbus_bindings/server.c @@ -388,6 +388,7 @@ Server_tp_new(PyTypeObject *cls, PyObject *args, PyObject *kwargs) self = DBusPyServer_NewConsumingDBusServer(cls, server, conn_class, mainloop, auth_mechanisms); + ((Server *)self)->weaklist = NULL; TRACE(self); return self; |