Skip to content

Update HandController.cs to avoid creating multiple instances of HandRuntimeControl which causes memory leaks#4

Open
gazcn007 wants to merge 1 commit intohiroki-o:masterfrom
gazcn007:master
Open

Update HandController.cs to avoid creating multiple instances of HandRuntimeControl which causes memory leaks#4
gazcn007 wants to merge 1 commit intohiroki-o:masterfrom
gazcn007:master

Conversation

@gazcn007
Copy link
Copy Markdown

@gazcn007 gazcn007 commented Oct 21, 2022

Thanks for the awesome work @hiroki-o ❤️

Overview

When compiled to an iOS project and run using XCode and Instruments, there is a huge amount of memory leaks pointing to HandRuntimeControl being created again and again
image
img_v2_54967fb9-cb73-46b7-b801-f4afda862d4g

What is changed

  • added checks on the initialization of HandRuntimeControl, if it has been created, avoid recreating it again

@gazcn007 gazcn007 changed the title Update HandController.cs to avoid creating multiple instances of HandRuntimeControl Update HandController.cs to avoid creating multiple instances of HandRuntimeControl which causes memory leaks Oct 21, 2022
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