Commit 8bec6e28 authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Themes: fixed memleak with dotted brush bitmap.part of issue #27559

git-svn-id: trunk@48048 -
parent 9cb856dd
......@@ -574,7 +574,10 @@ begin
begin
DottedBitmap := CreateBitmap(8, 8, 1, 1, @LineBitsDotted);
if DottedBitmap <> 0 then
begin
FDottedBrush := CreatePatternBrush(DottedBitmap);
DeleteObject(DottedBitmap);
end;
end;
Result := FDottedBrush;
end;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment