summaryrefslogtreecommitdiff
path: root/src/fltk-help_dialogs.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-help_dialogs.adb')
-rw-r--r--src/fltk-help_dialogs.adb6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fltk-help_dialogs.adb b/src/fltk-help_dialogs.adb
index a98545c..fa84f01 100644
--- a/src/fltk-help_dialogs.adb
+++ b/src/fltk-help_dialogs.adb
@@ -149,13 +149,9 @@ package body FLTK.Help_Dialogs is
procedure Finalize
(This : in out Help_Dialog) is
begin
- if This.Void_Ptr /= Null_Pointer and then
- This in Help_Dialog'Class
- then
+ if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then
free_fl_help_dialog (This.Void_Ptr);
- This.Void_Ptr := Null_Pointer;
end if;
- Finalize (Wrapper (This));
end Finalize;