conky-lua-colors: an eye candy cairo lua based conkyrc [update]
- December 20th, 2010
- By paradoxxx.zero
- Write comment
I fixed this morning a huge memory leak in the conky-lua-colors. Last week I’ve spotted that the conky process memory usage was slowly increasing. After 2 days it was up to 800Mo…
Basically the problem was, when a cairo pattern was created :
local pattern = cairo_pattern_create_radial (0, 0, r - w, 0, 0, r) cairo_pattern_add_color_stop_rgba (pattern, 0, unpack_rgb(color, .9)) cairo_pattern_add_color_stop_rgba (pattern, 1, unpack_rgb(color, .4)) cairo_set_source(cr, pattern)
It was not destroyed afterwards. Simply adding a :
cairo_pattern_destroy(pattern)
solved the problem.
So if you installed my conkyrc, you should quickly update the bananana.lua file.
Have fun





