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:
parent
1b98cebd7a
commit
ba823bcb17
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user