Comment 32 for bug 948788

Revision history for this message
In , Alexander Surkov (surkov-alexander) wrote :

(In reply to Ginn Chen from comment #20)

> > > 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?