CID 1393: Memory leak.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38051 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
70d3fa99c2
commit
de6ba1a073
@ -124,7 +124,10 @@ GetBitmap(BPositionIO *in, BBitmap **out)
|
|||||||
}
|
}
|
||||||
err = in->Read(bits, header.dataSize);
|
err = in->Read(bits, header.dataSize);
|
||||||
if (err == (status_t)header.dataSize) return B_OK;
|
if (err == (status_t)header.dataSize) return B_OK;
|
||||||
else return B_IO_ERROR;
|
else {
|
||||||
|
delete bitmap;
|
||||||
|
return B_IO_ERROR;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user