Infinite ObjectAnimators caused Drawable leaks Drawable has an `mCallback` field that is a weak ref to the callback view. It's a weak ref as an attempt to prevent leaks ([change](https://cs.android.com/android/_/android/platform/frameworks/base/+/f2a47782f31b58d2d31bd00b50fe43604af8b9c2)). Unfortunately, when an object animator runs a drawable forever, the `mCallback` weak ref will be checked every frame and the callback reference held as a java local for a brief moment, which makes it really hard for the GC to collect the targeted object. Fixes #2116
A memory leak detection library for Android.
🙏 If you like LeakCanary you can show support by starring ⭐ this repository.
Copyright 2015 Square, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.