CID 5885: Resource leak in error case.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39969 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2010-12-28 00:55:17 +00:00
parent b750229b00
commit 174a961e22

View File

@ -193,6 +193,7 @@ BitmapManager::CreateBitmap(ClientMemoryAllocator* allocator,
// indicate this is needed
} else {
// Allocation failed for buffer or bitmap list
free(buffer);
delete bitmap;
bitmap = NULL;
}