GNOME Bugzilla – Bug 566845
Leaks found in glibmm uriutils.cc
Last modified: 2009-01-19 08:52:27 UTC
Please describe the problem: Every function in this file should g_free() the result of the primitive glib calls, and it is not. For instance: std::string uri_escape_string(const std::string& unescaped, const std::string& reserved_chars_allowed, bool allow_utf8) { const gchar* cresult = g_uri_escape_string(unescaped.c_str(), reserved_chars_allowed.c_str(), allow_utf8); return Glib::convert_const_gchar_ptr_to_stdstring(cresult); } should g_free() cresult. Steps to reproduce: look at the source. Actual results: it leaks. Expected results: it not to leak. Does this happen every time? yes Other information: no.
fixed in trunk and glibmm-2-18 branch