From c90838ac55aec8bc698e9b960bf3c9de07d8dd8e Mon Sep 17 00:00:00 2001 From: Li Yuan Date: Mon, 10 Nov 2008 06:28:21 +0000 Subject: [PATCH] Don't ref the relation if it is not added. 2008-11-10 Li Yuan * atk/atkrelationset.c: (atk_relation_set_add): Don't ref the relation if it is not added. svn path=/trunk/; revision=1296 --- ChangeLog | 5 +++++ atk/atkrelationset.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ed37dff..871d4c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-10 Li Yuan + + * atk/atkrelationset.c: (atk_relation_set_add): + Don't ref the relation if it is not added. + 2008-11-07 Li Yuan * atk/atkrelationset.c: (atk_relation_set_add): diff --git a/atk/atkrelationset.c b/atk/atkrelationset.c index 3b975b7..2264595 100755 --- a/atk/atkrelationset.c +++ b/atk/atkrelationset.c @@ -164,8 +164,8 @@ atk_relation_set_add (AtkRelationSet *set, if (!atk_relation_set_contains (set, relationship)) { g_ptr_array_add (set->relations, relation); + g_object_ref (relation); } - g_object_ref (relation); } /** -- 2.7.4