Diff between d9430c0635bc36177d521d62a51f0d2a4e8c0fbb and cdd02afbb7eff7aa1bb9f9e8a7b6e0b8321d323c
Changed Files
| File | Additions | Deletions | Status |
| gdbus/object.c | +3 | -0 | modified |
Full Patch
diff --git a/gdbus/object.c b/gdbus/object.c
index 7b0476f..54e04b9 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -810,6 +810,9 @@ static struct generic_data *invalidate_parent_data(DBusConnection *conn,
if (child == NULL || g_slist_find(data->objects, child) != NULL)
goto done;
+ if (!g_slist_find(parent->objects, child))
+ goto done;
+
data->objects = g_slist_prepend(data->objects, child);
child->parent = data;