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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: memory leak #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

PeterStaev
Copy link

There is a memory leak in the current implementation. It can be simulated with the following workflow - just open the editor for an image, then cancel it, then open another image and cancel that one as well (same goes if you accept the edit). The instances of the PhotoEditorViewController are not freed from memory. Similar thing happens if you decide to add a sticker/emoji.

Also for some reason registering a font while it is already registered also causes some memory to be leaked (although not as big as the other one)

This PR fixes both leaks 馃槂

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

Successfully merging this pull request may close these issues.

None yet

1 participant