Issue of the Implementation # S0571


Memory leak when the "target" property value is set for an AtkRelation instance

Detailed Description

When "target" property value is set (it is stored as GPtrArray*), the old list of pointers to objects is not destroyed.

Problem location(s) in the standard

ATK 1.9.0 Reference Manual, AtkRelation

Possible solutions

There are at least 2 ways to deal with this problem:

  1. Mark "target" property as "Construct Only". In this case the value of property can be set only when an object is created. This way goes better along with the principles of Atk and GObject than the possibility to change this property for an existing object because it changes the object substantially.
  2. When attempting to set the value of this property, delete the old list of pointers if it exists.


gtk-atk 1.9.0 or later


Gnome Bugzilla 478620


Fixed in ATK 1.25.2 for GNOME 2.25.2