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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove redundant release #1295

Conversation

navaronbracke
Copy link
Collaborator

This PR is a follow up to navaronbracke@dead58e

The second release is redundant since we already do it a few lines above.

@@ -478,8 +478,6 @@ class MobileScanner(
it.zoomState.removeObservers(owner)
it.cameraState.removeObservers(owner)
}
textureEntry?.release()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@juliansteenbakker I decided to remove this one, since then the CameraX code (camera?.cameraInfo?.let and cameraProvider?.unbindAll()) are grouped together

Choose a reason for hiding this comment

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

Yeah that should be good

@@ -478,8 +478,6 @@ class MobileScanner(
it.zoomState.removeObservers(owner)
it.cameraState.removeObservers(owner)
}
textureEntry?.release()

Choose a reason for hiding this comment

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

Yeah that should be good

@juliansteenbakker juliansteenbakker merged commit efa533c into juliansteenbakker:master Jan 16, 2025
3 of 5 checks passed
@navaronbracke navaronbracke deleted the duplicate_texture_release branch January 16, 2025 18:23
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