diff options
Diffstat (limited to 'src/fltk-widgets-groups-packed.adb')
-rw-r--r-- | src/fltk-widgets-groups-packed.adb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/fltk-widgets-groups-packed.adb b/src/fltk-widgets-groups-packed.adb index 1a40889..5bc4d37 100644 --- a/src/fltk-widgets-groups-packed.adb +++ b/src/fltk-widgets-groups-packed.adb @@ -70,17 +70,20 @@ package body FLTK.Widgets.Groups.Packed is + procedure Extra_Final + (This : in out Packed_Group) is + begin + Extra_Final (Group (This)); + end Extra_Final; + + procedure Finalize (This : in out Packed_Group) is begin - if This.Void_Ptr /= Null_Pointer and then - This in Packed_Group'Class - then - This.Clear; + Extra_Final (This); + if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then free_fl_pack (This.Void_Ptr); - This.Void_Ptr := Null_Pointer; end if; - Finalize (Group (This)); end Finalize; |