mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 09:09:29 +02:00
Gtk3: create toplevel list only in debug mode.
This commit is contained in:
parent
1aa4abc1e4
commit
13ef93cd67
@ -485,19 +485,15 @@ begin
|
||||
if Assigned(FGtk3Application) then
|
||||
begin
|
||||
FGtk3Application^.quit;
|
||||
{$IFDEF GTK3DEBUGCORE}
|
||||
AList := FGtk3Application^.get_windows;
|
||||
if Assigned(AList) then
|
||||
begin
|
||||
{$IFDEF GTK3DEBUGCORE}
|
||||
DebugLn('TGtk3WidgetSet.Gtk3Destroy app Windows list ',dbgs(g_list_length(AList)));
|
||||
{$ENDIF}
|
||||
g_list_free(AList);
|
||||
end else
|
||||
begin
|
||||
{$IFDEF GTK3DEBUGCORE}
|
||||
DebugLn('TGtk3WidgetSet.Gtk3Destroy app Windows list is null ');
|
||||
{$ENDIF}
|
||||
end;
|
||||
{$ENDIF}
|
||||
FGtk3Application^.release;
|
||||
FGtk3Application^.unref;
|
||||
FGtk3Application := nil;
|
||||
|
Loading…
Reference in New Issue
Block a user