mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 23:00:15 +02:00
Fix memory leak
git-svn-id: trunk@43597 -
This commit is contained in:
parent
14cfd3b843
commit
ea591448aa
@ -1718,7 +1718,7 @@ begin
|
||||
ctx := CheckDC(DC);
|
||||
if not Assigned(ctx) then
|
||||
Exit;
|
||||
if (ctx <> DefaultContext) and (ctx.ctx <> DefaultContext.ctx) then
|
||||
if (ctx <> DefaultContext) and (ctx<>ScreenContext) then
|
||||
ctx.Free;
|
||||
Result := 1;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user