! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Memory leak in gradient_draw_shaded
Status:
RESOLVED: DUPLICATE
Product:
Gtk-xfce-engine
Component:
General

Comments

Description Hauke Henningsen 2013-02-10 19:39:09 CET
I'm not familiar with the internals of xfce, gtk, or cairo, however I encoutered bug #9691 in xfce4-cpugraph-plugin and did some debugging with valgrind, which showed malloc() calls inside gradient_draw_shaded() without corresponding free()s ; It seems that gradient_draw_shaded() in gradient_draw.c calls cairo_pattern_create_linear(), but does not free the returned cairo_pattern_t via cairo_pattern_destroy().

Inserting "cairo_pattern_destroy(gradient);" at the end of the function body has, guessing from the fact that there is no memory leak visible anymore, fixed the problem for me.

The bug has occurred on Ubuntu 12.10 amd64, the version of gtk2-engines-xfce is 3.0.0-1.
Comment 1 Peter de Ridder editbugs 2015-02-18 08:17:27 CET
This has been fixed in a later release

*** This bug has been marked as a duplicate of bug 8521 ***

Bug #9849

Reported by:
Hauke Henningsen
Reported on: 2013-02-10
Last modified on: 2015-02-18

People

Assignee:
Olivier Fourdan
CC List:
1 user

Version

Version:
Unspecified

Attachments

Additional information