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 306147 - tag_id leaked
tag_id leaked
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-01 13:25 UTC by Paolo Borelli
Modified: 2005-06-21 17:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paolo Borelli 2005-06-01 13:25:27 UTC
noticed by muntian on irc: get_tag_id and get_language_id strudup the result and
we are leaking in at least tag_style_changed_cb where we do 

	if (strcmp (gtk_source_tag_get_id (tag), id) != 0)
		return;

maybe in other places...

If (and only if) we break abi: should we consider making these functions return
const? (not sure since usually strdup protects you from having the object freed
under your feets)
Comment 1 Paolo Maggi 2005-06-21 17:59:23 UTC
Fixed in CVS HEAD.