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
@@ -56,8 +56,7 @@ BitmapDrawingEngine::SetSize(int32 newWidth, int32 newHeight)
fHWInterface = NULL; fHWInterface = NULL;
} }
delete fBitmap; fBitmap.Unset();
fBitmap = NULL;
if (newWidth <= 0 || newHeight <= 0) if (newWidth <= 0 || newHeight <= 0)
return B_OK; return B_OK;
@@ -25,7 +25,7 @@ virtual ~BitmapDrawingEngine();
private: private:
color_space fColorSpace; color_space fColorSpace;
BitmapHWInterface* fHWInterface; BitmapHWInterface* fHWInterface;
UtilityBitmap* fBitmap; BReference<UtilityBitmap> fBitmap;
BRegion fClipping; BRegion fClipping;
}; };