Skip to content

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.

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

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