There are a few memory leaks the tray icons patch. I found one of them as it was the worst one (Eating a gigabyte of memory an hour). In item.c in the item_render function, there is this line:
image never gets freed. The fix is to add cairo_surface_destroy(image) after cairo_set_source_surface
There is another leak where i'm fairly certain that icons no longer shown don't get freed. However it's tricky to figure out where it is. But everytime a new icon spawns, it'll be allocated and not freed from what I can tell.
There are a few memory leaks the tray icons patch. I found one of them as it was the worst one (Eating a gigabyte of memory an hour). In
item.c
in theitem_render
function, there is this line:image
never gets freed. The fix is to addcairo_surface_destroy(image)
aftercairo_set_source_surface
There is another leak where i'm fairly certain that icons no longer shown don't get freed. However it's tricky to figure out where it is. But everytime a new icon spawns, it'll be allocated and not freed from what I can tell.