home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 January
/
Chip_1999-01_cd.bin
/
zkuste
/
delphi
/
D
/
SNPTST20.ZIP
/
TestApp
/
LeakAppU.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-07-25
|
519b
|
36 lines
unit LeakAppU;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
p, q: pointer;
begin
GetMem(p,100);
GetMem(q,20);
FreeMem(p);
end;
end.