Forgot to reset fBitmap to NULL.
Thanks to Rene for reviewing.
This commit is contained in:
@@ -57,6 +57,7 @@ BitmapDrawingEngine::SetSize(int32 newWidth, int32 newHeight)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fBitmap->ReleaseReference();
|
fBitmap->ReleaseReference();
|
||||||
|
fBitmap = NULL;
|
||||||
|
|
||||||
if (newWidth <= 0 || newHeight <= 0)
|
if (newWidth <= 0 || newHeight <= 0)
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user