summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-clocks-updated-round.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-clocks-updated-round.adb')
-rw-r--r--src/fltk-widgets-clocks-updated-round.adb14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/fltk-widgets-clocks-updated-round.adb b/src/fltk-widgets-clocks-updated-round.adb
index 96acf8a..aa08655 100644
--- a/src/fltk-widgets-clocks-updated-round.adb
+++ b/src/fltk-widgets-clocks-updated-round.adb
@@ -61,16 +61,20 @@ package body FLTK.Widgets.Clocks.Updated.Round is
+ procedure Extra_Final
+ (This : in out Round_Clock) is
+ begin
+ Extra_Final (Updated_Clock (This));
+ end Extra_Final;
+
+
procedure Finalize
(This : in out Round_Clock) is
begin
- if This.Void_Ptr /= Null_Pointer and then
- This in Round_Clock'Class
- then
+ Extra_Final (This);
+ if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then
free_fl_round_clock (This.Void_Ptr);
- This.Void_Ptr := Null_Pointer;
end if;
- Finalize (Updated_Clock (This));
end Finalize;