Re: gtk_tree_model_get() --> when to free results???
- From: Stefan Kost <ensonic hora-obscura de>
- To: Olivier Sessink <lists olivier pk wau nl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk_tree_model_get() --> when to free results???
- Date: Tue, 10 May 2005 20:42:51 +0200
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.
Stefan
Peter Bloomfield wrote:
On 05/10/2005 10:11:40 AM, Olivier Sessink wrote:
[ snip ]
thanks for the clarification. where did you find this information?
I don't recall--certainly not from the docs! Partly experimentation--I
noticed that some objects weren't getting finalized.
I'll file a bugreport in bugzilla then, this is quite annoying if every
programmers has to find this by debugging:
http://bugzilla.gnome.org/show_bug.cgi?id=303675
thanks for your help!
Olivier
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]