From 7c454d924cf2e34adaf84012d5e3249d81d200e8 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 13 Apr 2025 20:43:03 +1200 Subject: Extra_Final now checks appropriately whether Needs_Dealloc --- body/fltk-widgets-groups.adb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'body/fltk-widgets-groups.adb') diff --git a/body/fltk-widgets-groups.adb b/body/fltk-widgets-groups.adb index 4c30dfb..d6b51d4 100644 --- a/body/fltk-widgets-groups.adb +++ b/body/fltk-widgets-groups.adb @@ -217,7 +217,9 @@ package body FLTK.Widgets.Groups is procedure Extra_Final (This : in out Group) is begin - This.Clear; + if This.Needs_Dealloc then + This.Clear; + end if; Extra_Final (Widget (This)); end Extra_Final; -- cgit