diff options
Diffstat (limited to 'src/fltk-widgets-inputs-integer.adb')
-rw-r--r-- | src/fltk-widgets-inputs-integer.adb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/fltk-widgets-inputs-integer.adb b/src/fltk-widgets-inputs-integer.adb index 1d2c307..6633354 100644 --- a/src/fltk-widgets-inputs-integer.adb +++ b/src/fltk-widgets-inputs-integer.adb @@ -59,16 +59,20 @@ package body FLTK.Widgets.Inputs.Integer is + procedure Extra_Final + (This : in out Integer_Input) is + begin + Extra_Final (Input (This)); + end Extra_Final; + + procedure Finalize (This : in out Integer_Input) is begin - if This.Void_Ptr /= Null_Pointer and then - This in Integer_Input'Class - then + Extra_Final (This); + if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then free_fl_int_input (This.Void_Ptr); - This.Void_Ptr := Null_Pointer; end if; - Finalize (Input (This)); end Finalize; |