Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Possible memory leak in iOS #50

Open
Jasonvdb opened this issue Jan 22, 2021 · 0 comments
Open

Possible memory leak in iOS #50

Jasonvdb opened this issue Jan 22, 2021 · 0 comments
Labels
question Further information is requested
Milestone

Comments

@Jasonvdb
Copy link
Collaborator

Jasonvdb commented Jan 22, 2021

Not 100% certain this is an issue and no urgent fix or investigation required now but creating this ticket in case this causes a problem later.

After calling an rgb function from Swift code and using the pointer in CResultString to create Swift string, that data is only copied and the original most likely is never being released from memory on the rust side. Usually in a C library there will be an additional function to call to explicitly release the result from memory once the Swift code is done copying it.

@dr-orlovsky dr-orlovsky added the question Further information is requested label Jan 24, 2021
@dr-orlovsky dr-orlovsky added this to the v0.3 milestone Jan 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants