mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 04:35:57 +02:00
MWE:
* Moved call to BeforeDestruction to CustomForm - Removed form.inc git-svn-id: trunk@3572 -
This commit is contained in:
parent
989c2e0f11
commit
12a521cac8
@ -326,8 +326,6 @@ type
|
|||||||
FClientHandle: HWND;
|
FClientHandle: HWND;
|
||||||
FDummyPPI : longint;
|
FDummyPPI : longint;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TComponent); override;
|
|
||||||
destructor Destroy; override;
|
|
||||||
property ClientHandle: HWND read FClientHandle;
|
property ClientHandle: HWND read FClientHandle;
|
||||||
published
|
published
|
||||||
property PixelsPerInch : Longint read FDummyPPI write FDummyPPI stored False;
|
property PixelsPerInch : Longint read FDummyPPI write FDummyPPI stored False;
|
||||||
@ -738,7 +736,6 @@ end;
|
|||||||
|
|
||||||
{$I scrollingwincontrol.inc}
|
{$I scrollingwincontrol.inc}
|
||||||
{$I scrollbox.inc}
|
{$I scrollbox.inc}
|
||||||
{$I form.inc}
|
|
||||||
{$I customform.inc}
|
{$I customform.inc}
|
||||||
{$I screen.inc}
|
{$I screen.inc}
|
||||||
{$I application.inc}
|
{$I application.inc}
|
||||||
|
@ -107,6 +107,11 @@ begin
|
|||||||
//writeln('[TCustomForm.Destroy] A ',Name,':',ClassName);
|
//writeln('[TCustomForm.Destroy] A ',Name,':',ClassName);
|
||||||
if not (csDestroying in ComponentState) then ;//GlobalNameSpace.BeginWrite;
|
if not (csDestroying in ComponentState) then ;//GlobalNameSpace.BeginWrite;
|
||||||
try
|
try
|
||||||
|
// ------
|
||||||
|
// Temp hack to get Beforedestruction called
|
||||||
|
// FPC1.0.x doesn't call itself before destruction
|
||||||
|
{$IFDEF VER1_0}BeforeDestruction;{$ENDIF}
|
||||||
|
// ------
|
||||||
FMenu.Free;
|
FMenu.Free;
|
||||||
FMenu:=nil;
|
FMenu:=nil;
|
||||||
FCanvas.Free;
|
FCanvas.Free;
|
||||||
@ -1165,6 +1170,11 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.67 2002/10/27 15:46:58 lazarus
|
||||||
|
MWE:
|
||||||
|
* Moved call to BeforeDestruction to CustomForm
|
||||||
|
- Removed form.inc
|
||||||
|
|
||||||
Revision 1.66 2002/10/27 11:51:35 lazarus
|
Revision 1.66 2002/10/27 11:51:35 lazarus
|
||||||
MG: fixed memleaks
|
MG: fixed memleaks
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user