app_server: fix misuse of BReferenceable.

Fixes #9989.
This commit is contained in:
Adrien Destugues 2015-01-23 13:46:04 +01:00
parent 84ed7b4bb4
commit 6f3acb9163
2 changed files with 2 additions and 3 deletions

View File

@ -56,8 +56,7 @@ BitmapDrawingEngine::SetSize(int32 newWidth, int32 newHeight)
fHWInterface = NULL;
}
delete fBitmap;
fBitmap = NULL;
fBitmap.Unset();
if (newWidth <= 0 || newHeight <= 0)
return B_OK;

View File

@ -25,7 +25,7 @@ virtual ~BitmapDrawingEngine();
private:
color_space fColorSpace;
BitmapHWInterface* fHWInterface;
UtilityBitmap* fBitmap;
BReference<UtilityBitmap> fBitmap;
BRegion fClipping;
};