Re: gtk_tree_model_get() --> when to free results???



Stefan Kost wrote:
Hi Olivier,

I am afraid this report is invalid. It is common behaviour in
glib/gobject based applications that when returning data
* gobjects are reffed and need to be unreffed when done
* strings are strdup'ed and should be freed (unless they are marked as
const)
such can't be done for pointers as they are opaque to the system.

your claim may be 100% true, it probably is, but it doesn't affect my
bug report.

I'm claiming that from a app-developer point of view, the documentation
could be improved such that coding will be more productive.

The documentation is there to facilitate app-developers to make good use
of gtk, and exploit all the possibilities of gtk in the right way. The
better the documentation, the better the app-developers can make use of
gtk, the more and better gtk apps we will get. Documentation is *very*
important, and every improvement of the documentation is thus an
important improvement.

regards,
        Olivier




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]