@Override
    public void recycle() {
        Resource<Bitmap> bitmapResource = data.getBitmapResource();
        if (bitmapResource != null) {
            bitmapResource.recycle();
        }
        Resource<GifDrawable> gifDataResource = data.getGifResource();
        if (gifDataResource != null) {
            gifDataResource.recycle();
        }
    }
A resource that wraps an {@link GifBitmapWrapper}.
core/src/main/java/com/bumptech/glide/load/resource/gifbitmap/GifBitmapWrapperResource.java