Re: PATCH: anti memleak part 1



Found in gtk doc (for the entry widget) :

gtk_entry_get_text ()

gchar*      gtk_entry_get_text              (GtkEntry *entry);

Retrieve the contents of the entry widget. The returned pointer points to
internally allocated storage in the widget and must not be freed, modified
or stored. For this reason, this function is deprecated. Use
gtk_editable_get_chars() instead.


So you should not free the buffer returned by this function.
Moreover when it is said the this function is deprecated, does that mean
that we should not use it anymore because it is meant to disappear ?
Bye
Manu



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