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:
parent
b750229b00
commit
174a961e22
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user