> > > We need to copy the string to gchar* anyway.
> >
> > yep, just copy the string every time when we were asked. Doesn't sound good?
>
> Actually it's not possible.
> atk_object_get_name() returns const gchar*, caller will not free the return
> value.
> We have to keep it somewhere in AtkObject, otherwise we leak.
I see
So if provide getName/setName implementation that will use accessible->name to store a value then would it be acceptable solution?
(In reply to Ginn Chen from comment #20)
> > > We need to copy the string to gchar* anyway. get_name( ) returns const gchar*, caller will not free the return
> >
> > yep, just copy the string every time when we were asked. Doesn't sound good?
>
> Actually it's not possible.
> atk_object_
> value.
> We have to keep it somewhere in AtkObject, otherwise we leak.
I see
So if provide getName/setName implementation that will use accessible->name to store a value then would it be acceptable solution?