fix imageview::~imageview

This commit is contained in:
侯歌 2024-07-01 18:32:04 +08:00
parent c6d998ccaf
commit 9a2809a0aa

View File

@ -70,11 +70,8 @@ void ImageView::initImageView(){
}
ImageView::~ImageView() {
if(mDrawable!=mRecycleableBitmapDrawable){
unscheduleDrawable(*mRecycleableBitmapDrawable);
if(mDrawable!=mRecycleableBitmapDrawable)
delete mRecycleableBitmapDrawable;
}
if(mDrawable)unscheduleDrawable(*mDrawable);
delete mDrawable;
//delete mDrawableTintList;//cant be destroied.
delete mColorFilter;