Re: [Vala] Potential memory leak?
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: Alexander Krivács Schrøder <alexschrod gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Potential memory leak?
- Date: Wed, 29 Dec 2010 20:45:05 +0100
Hello,
في ر، 29-12-2010 عند 18:34 +0100 ، كتب Alexander Krivács Schrøder:
Hi. I have a question.
If you look at the documentation for the
gtk_source_completion_proposal_get_text () C function:
http://library.gnome.org/devel/gtksourceview/2.9/GtkSourceCompletionProposal.html#gtk-source-completion-proposal-get-text
It says "The returned string must be freed with g_free()".
[...]
Isn't this a memory leak?
It is. But this is not intentional : the bindings are auto generated and
often return values are marked as unowned while they should be freed.
Feel free to file a bug.
Regards,
Abderrahim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]