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:
Adrien Destugues 2010-08-12 13:16:40 +00:00
parent 70d3fa99c2
commit de6ba1a073

View File

@ -124,7 +124,10 @@ GetBitmap(BPositionIO *in, BBitmap **out)
}
err = in->Read(bits, header.dataSize);
if (err == (status_t)header.dataSize) return B_OK;
else return B_IO_ERROR;
else {
delete bitmap;
return B_IO_ERROR;
}
}