mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 05:29:26 +02:00
MG: close application object in gtkint.pp
git-svn-id: trunk@279 -
This commit is contained in:
parent
eb92e596e0
commit
2703d29631
@ -53,16 +53,15 @@ begin
|
||||
Application.Run;
|
||||
SplashForm.Free;
|
||||
|
||||
writeln('LAZARUS close application...');
|
||||
// workaround till lcl closes clean
|
||||
Application.Free;
|
||||
Application:=nil;
|
||||
writeln('LAZARUS END');
|
||||
end.
|
||||
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.19 2001/06/04 07:50:42 lazarus
|
||||
MG: close application object in gtkint.pp
|
||||
|
||||
Revision 1.18 2001/03/19 14:00:46 lazarus
|
||||
MG: fixed many unreleased DC and GDIObj bugs
|
||||
|
||||
|
@ -236,8 +236,6 @@ var
|
||||
|
||||
|
||||
initialization
|
||||
|
||||
|
||||
gtk_handler_quark := g_quark_from_static_string('gtk-signal-handlers');
|
||||
|
||||
Target_Table[0].Target := 'STRING';
|
||||
@ -258,6 +256,9 @@ end.
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.14 2001/06/04 07:50:42 lazarus
|
||||
MG: close application object in gtkint.pp
|
||||
|
||||
Revision 1.13 2001/04/06 22:25:14 lazarus
|
||||
* TTimer uses winapi-interface now instead of sendmessage-interface, stoppok
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
unit interfaces;
|
||||
|
||||
{$mode objfpc}
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
@ -34,14 +34,23 @@ var
|
||||
implementation
|
||||
|
||||
uses
|
||||
GTKInt;
|
||||
GTKInt,
|
||||
Forms; // MG: GTKInt uses forms, so the application object is destroyed
|
||||
// in the forms finalization section AFTER this finalization
|
||||
// section. But the lcl objects need the gtk to close clean.
|
||||
// Therefore the application object is freed here.
|
||||
// P.S.: This is only a workaround till the interfaces are below
|
||||
// the lcl.
|
||||
|
||||
initialization
|
||||
|
||||
InterfaceObject := TgtkObject.Create;
|
||||
InterfaceObject := TgtkObject.Create;
|
||||
|
||||
finalization
|
||||
|
||||
InterfaceObject.Free;
|
||||
Application.Free;
|
||||
Application:=nil;
|
||||
|
||||
InterfaceObject.Free;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user