CnPack Forum

#1 CnGraphics.pas 含有内存泄露
行 2685-2686

原代码
[code] if Assigned(FCanvas) then
TCnCanvas(FCanvas).FreeContext; // 释放DC[/code]

改为[code] if Assigned(FCanvas) then
TCnCanvas(FCanvas).Free; // 释放DC[/code]

即可解决。

fastmm报的代码

21 - 28 bytes: TBrush x 3, TPen x 3
29 - 36 bytes: TFont x 3, Unknown x 2
53 - 68 bytes: Unknown x 1
85 - 100 bytes: TCnCanvas x 3
8/2 22:41
freespace8

#2 多谢报告！
..

#1 >>Next Page

Forum:CnVCL 组件包
Thread:CnGraphics.pas 含有 ...
Next Thread:Delphi 编码的一点儿 ...

Home
Login

Powered by Discuz!