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 300796 - memory leak in iter_has_syntax_tag (gtksourceview/gtksourcebuffer.c)
memory leak in iter_has_syntax_tag (gtksourceview/gtksourcebuffer.c)
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
: 300795 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-04-15 20:46 UTC by Yevgen Muntyan
Modified: 2005-06-21 17:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The patch (950 bytes, patch)
2005-04-15 20:48 UTC, Yevgen Muntyan
none Details | Review
Patch for gtksourceview/gtksourcebuffer.c + Changelog (1.48 KB, patch)
2005-04-16 08:38 UTC, Yevgen Muntyan
none Details | Review

Description Yevgen Muntyan 2005-04-15 20:46:40 UTC
That function has the following:  
---------------------------------------------  
    list = gtk_text_iter_get_tags (iter);  
    ...  
    while ((list != NULL) && (tag == NULL)) {  
        ...  
        list = g_slist_next (list);  
    }  
      
    g_slist_free (list);  
----------------------------------------------  
So it potentially doesn't free whole list obtained by get_tags()
Comment 1 Yevgen Muntyan 2005-04-15 20:48:14 UTC
Created attachment 45302 [details] [review]
The patch
Comment 2 Yevgen Muntyan 2005-04-15 20:52:01 UTC
Sorry, forgot to tell: I tested patch with tests/test-widget and in my 
project, doesn't seem to break anything. Don't know how to test it with gedit. 
Comment 3 Yevgen Muntyan 2005-04-15 20:54:22 UTC
*** Bug 300795 has been marked as a duplicate of this bug. ***
Comment 4 Yevgen Muntyan 2005-04-16 08:38:42 UTC
Created attachment 45317 [details] [review]
Patch for gtksourceview/gtksourcebuffer.c + Changelog
Comment 5 Paolo Maggi 2005-06-21 17:31:00 UTC
Fixed in CVS HEAD.