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 770063 - [PATCH] Fix memory leak in get_string_pixel_size
[PATCH] Fix memory leak in get_string_pixel_size
Status: RESOLVED FIXED
Product: gnome-commander
Classification: Other
Component: application
unspecified
Other Linux
: Normal normal
: 1.8
Assigned To: GNOME Commander maintainer(s)
GNOME Commander maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-08-18 04:45 UTC by Eric R. Schulz
Modified: 2016-08-22 19:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix memory leak in get_string_pixel_size (1.09 KB, patch)
2016-08-18 04:45 UTC, Eric R. Schulz
none Details | Review

Description Eric R. Schulz 2016-08-18 04:45:14 UTC
Created attachment 333536 [details] [review]
Fix memory leak in get_string_pixel_size

Use g_object_ref_sink() followed by g_object_unref() to properly set
the reference count.
Comment 1 Uwe Scholz 2016-08-22 19:48:38 UTC
Thanks allot for providing this patch. It is applied to the master branch of gcmd and will go into the next stable release.