Fix memory leak

git-svn-id: trunk@43597 -
This commit is contained in:
freq 2013-12-27 10:46:26 +00:00
parent 14cfd3b843
commit ea591448aa

View File

@ -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;