delorie.com/archives/browse.cgi | search |
On Fri, 11 Dec 2020, Glenn (glimrick AT epilitimus DOT com) [via geda-user AT delorie DOT com] wrote: > I looked at this again. While I am sure you are correct about > g_object_data valgrind lists the string as definitely lost so you need > to find another place to free it once you are done with it. Yes, the string is lost; it is allocated and its pointer stored in the general-purpose "data" field of the widget. The proper way to free it would be to use g_object_set_data_full with a GDestroyNotify callback (probably just g_free).
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |