Louis Foster

Results 6 comments of Louis Foster

I have also encountered this leak, I think the encoding crash might be a separate issue (related to how skia handles the underlying buffer, for example if you pass the...

I'm wondering if [`paragraph` ](https://github.com/Brooooooklyn/canvas/blob/main/skia-c/skia_c.cpp#L388)needs to have `reset()` called at the end? I'm not a pro at C++, so I'm just trying to understand the cause of the leak, but...

I may have been slightly incorrect, but [this reference](https://www.cplusplus.com/reference/memory/unique_ptr/release/) says that if `release()` is called, something else needs to take care of deleting the object with `delete`.

I tried adding `delete paragraph;` to the end of the function and tried building again. I didn't notice any difference in the memory with my tests, too much memory still...

Prebuilt, I think the solution in the link will fix, however I am now using a similar lib that seems to compile as described: https://github.com/chris-rudmin/opus-recorder/blob/master/Makefile#L5

If you want to use a name other than `element`, like `user` then do this: `` This is useful when you're working with nested draggables.