From e3a2e77198bcfa3d23a6285a4a9cc63b69f32080 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 18 Jun 2004 08:36:18 +0000 Subject: [PATCH] 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 --- src/kits/interface/Bitmap.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kits/interface/Bitmap.cpp b/src/kits/interface/Bitmap.cpp index 8162671120..2d14e048d9 100644 --- a/src/kits/interface/Bitmap.cpp +++ b/src/kits/interface/Bitmap.cpp @@ -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