diff options
Diffstat (limited to 'src/fltk-widgets-valuators-dials-line.adb')
-rw-r--r-- | src/fltk-widgets-valuators-dials-line.adb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/fltk-widgets-valuators-dials-line.adb b/src/fltk-widgets-valuators-dials-line.adb index 01e8c44..a02d1b8 100644 --- a/src/fltk-widgets-valuators-dials-line.adb +++ b/src/fltk-widgets-valuators-dials-line.adb @@ -55,16 +55,20 @@ package body FLTK.Widgets.Valuators.Dials.Line is + procedure Extra_Final + (This : in out Line_Dial) is + begin + Extra_Final (Dial (This)); + end Extra_Final; + + procedure Finalize (This : in out Line_Dial) is begin - if This.Void_Ptr /= Null_Pointer and then - This in Line_Dial'Class - then + Extra_Final (This); + if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then free_fl_line_dial (This.Void_Ptr); - This.Void_Ptr := Null_Pointer; end if; - Finalize (Dial (This)); end Finalize; |