wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
675 stars 112 forks source link

Clear references in AztecExceptionHandler.kt #995

Closed planarvoid closed 1 year ago

planarvoid commented 1 year ago

Fix

AztecExceptionHandler is leaking AztecText. In this PR I'm replacing the references with WeakReference so that the reference to the AztecText is not held by the exception handler longer than necessary

Review

@khaykov

Make sure strings will be translated: