Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak when using gdb-pixbuf #100

Open
shamazmazum opened this issue Oct 3, 2022 · 0 comments
Open

Memory leak when using gdb-pixbuf #100

shamazmazum opened this issue Oct 3, 2022 · 0 comments

Comments

@shamazmazum
Copy link

Hi!

When I call a function like set-image many times, I get gigabytes of memory leaked. gtk-image-set-from-file is OK, but I need a pixbuf for resizing. What's wrong here?

(defun set-image (image filename)
  (gtk:gtk-image-set-from-pixbuf
   image
   (gdk-pixbuf:gdk-pixbuf-new-from-file filename)))

Part of a real application where memory leak occurs:
https://github.com/shamazmazum/similar-images/blob/e11efb8e046ae3bcff85a11bd507be6a7dc5d438/viewer/viewer.lisp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant