Skip to content

Conversation

samdogg7
Copy link

Resolves memory leak mentioned in Issue 94

}
private extension CameraManagerMotionManager {
func handleAccelerometerUpdates(_ data: CMAccelerometerData?, _ error: Error?) {
guard let data, error == nil else { return }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe with all of that, the ! should be removed from:

    private(set) weak var parent: CameraManager!

We should not pretend it can not be nil if it can.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bogdan updated in 8fde7fb. Sorry about that.

@samdogg7
Copy link
Author

samdogg7 commented Aug 6, 2025

@FulcrumOne / @bogdan this PR is ready for review. I believe this as a high priority fix, if either of you are able to review!

@bogdan
Copy link

bogdan commented Aug 6, 2025

@samdogg7 I am already using this patch in production 👍 . Works well so far.

Unfortunately, @FulcrumOne doesn't pay much attention to the repo and I have no power here. We need to find a way to get some maintenance, but I don't have any ideas.

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.

2 participants