mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
fix imageview::setImageBitmap's crash in multi calls
This commit is contained in:
parent
d84de8e99e
commit
a04c87ae0d
@ -720,7 +720,8 @@ void ImageView::updateDrawable(Drawable*d){
|
||||
}
|
||||
|
||||
void ImageView::setImageBitmap(RefPtr<ImageSurface>bitmap){
|
||||
delete mDrawable;
|
||||
if(mDrawable!=mRecycleableBitmapDrawable)
|
||||
delete mDrawable;
|
||||
mDrawable = nullptr;
|
||||
if (mRecycleableBitmapDrawable == nullptr) {
|
||||
mRecycleableBitmapDrawable = new BitmapDrawable(bitmap);
|
||||
|
Loading…
Reference in New Issue
Block a user