fBuffer was allocated with new and freed with "free()". Fixedx

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31738 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2009-07-24 18:34:05 +00:00
parent 1b98cebd7a
commit ba823bcb17

View File

@ -107,7 +107,7 @@ ServerBitmap::~ServerBitmap()
if (fAllocator != NULL) if (fAllocator != NULL)
fAllocator->Free(AllocationCookie()); fAllocator->Free(AllocationCookie());
else else
free(fBuffer); delete[] fBuffer;
delete fOverlay; delete fOverlay;
// deleting the overlay will also free the overlay buffer // deleting the overlay will also free the overlay buffer