From: Li Yuan Date: Mon, 10 Nov 2008 06:28:21 +0000 (+0000) Subject: Don't ref the relation if it is not added. X-Git-Tag: ATK_1_25_2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c90838ac55aec8bc698e9b960bf3c9de07d8dd8e;p=platform%2Fupstream%2Fatk.git 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 --- 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); } /**