cairo graphics inside my_conky.lua is eating memory when I use surface_create_from_png
1
vote
1
answer
264
views
I tried adding images to my
conky.lua
with the following function
function drawimage(cr,img)
image = cairo_image_surface_create_from_png (img)
cairo_set_source_surface (cr, image, screen.x, screen.y)
cairo_paint (cr)
cairo_surface_destroy (image)
end
After starting conky
my pc took a few minutes to get frozen. After a reboot, I realized that cairo_image_surface_create_from_png()
function that eats my ram memory.
How can I prevent that, if possible?
Asked by Yunus
(1732 rep)
Mar 7, 2019, 07:17 PM
Last activity: Jun 10, 2019, 03:32 PM
Last activity: Jun 10, 2019, 03:32 PM