LCL, fix DbImage leak if stream is empty, slightly modified from Stratis Aravias patch in issue #25750

git-svn-id: trunk@44334 -
This commit is contained in:
jesus 2014-03-03 19:17:50 +00:00
parent d0d17505d9
commit ca052fe4aa

View File

@ -182,6 +182,8 @@ begin
s := FDataLink.DataSet.CreateBlobStream(FDataLink.Field,bmRead);
if (S=Nil) or (s.Size = 0) then
begin
if s<>nil then
s.Free;
Picture.Clear;
exit;
end;