Be nice and explain why we don't free fBasePtr. Implemented Area()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8037 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -828,8 +828,9 @@ BBitmap::BBitmap(const BBitmap *source, bool acceptsViews,
|
||||
*/
|
||||
BBitmap::~BBitmap()
|
||||
{
|
||||
// if (fBasePtr)
|
||||
// free(fBasePtr);
|
||||
// TODO: don't free fBasePtr, as it's owned by the app_server
|
||||
// should probably decrement an associated reference count, though,
|
||||
// so the app_server knows this bitmap isn't used anymore
|
||||
}
|
||||
|
||||
// unarchiving constructor
|
||||
@@ -919,7 +920,7 @@ BBitmap::UnlockBits()
|
||||
area_id
|
||||
BBitmap::Area() const
|
||||
{
|
||||
return NOT_IMPLEMENTED;
|
||||
return fArea;
|
||||
}
|
||||
|
||||
// Bits
|
||||
|
||||
Reference in New Issue
Block a user