After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566845 - Leaks found in glibmm uriutils.cc
Leaks found in glibmm uriutils.cc
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: general
2.18.x
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2009-01-06 23:40 UTC by Jason 'vanRijn' Kasper
Modified: 2009-01-19 08:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Jason 'vanRijn' Kasper 2009-01-06 23:40:08 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.
Comment 1 Jonathon Jongsma 2009-01-07 05:35:04 UTC
fixed in trunk and glibmm-2-18 branch