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)

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

I appreciate to know how to prevent that if possible and thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.