Skip to content

fix: memory leak#81

Open
PeterStaev wants to merge 1 commit intobevy:masterfrom
PeterStaev:fix-mmemory-leak
Open

fix: memory leak#81
PeterStaev wants to merge 1 commit intobevy:masterfrom
PeterStaev:fix-mmemory-leak

Conversation

@PeterStaev
Copy link
Copy Markdown

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.

1 participant