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 428056 - leaks memory from text properties
leaks memory from text properties
Status: RESOLVED FIXED
Product: libwnck
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libwnck maintainers
libwnck maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-09 23:03 UTC by Matthias Clasen
Modified: 2007-04-10 11:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
property-leak.patch (514 bytes, patch)
2007-04-09 23:04 UTC, Matthias Clasen
accepted-commit_now Details | Review

Description Matthias Clasen 2007-04-09 23:03:16 UTC
text_property_to_utf8() needs to free the return string array, even if count is 0.
Comment 1 Matthias Clasen 2007-04-09 23:04:16 UTC
Created attachment 86082 [details] [review]
property-leak.patch
Comment 2 Elijah Newren 2007-04-09 23:33:50 UTC
You know what gdk_text_property_to_utf8_list does better than anyone else...
Comment 3 Matthias Clasen 2007-04-10 11:37:24 UTC
2007-04-10  Matthias Clasen  <mclasen@redhat.com>

        * libwnck/xutils.c (text_property_to_utf8): Always
        free the list of strings returned by
        gdk_text_property_to_utf8_list.  (#428056)