Replies: 1 comment 3 replies
-
How did you diagnose the leak? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My program is leaking memory when calling a lua function from rust, with a scoped mut ref userdata.
My goal is to have a color buffer for which a lua function decides how it should look which is then painted in rust.
It looks like this:
The self visual has the type VisualBuffer which looks like this:
And this is my implementation for the UserData:
The called lua function intern only calls the
set_all
function on the buffer.I've tried to reproduce the leak minimally and ended with:
Which doesn't seem to leak. I've been trying to solve this problem for 2 days now and really am quite frustrated with the code and myself. I'm sorry if the solution is obvious.
Beta Was this translation helpful? Give feedback.
All reactions