summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-menus-choices.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-menus-choices.adb')
-rw-r--r--src/fltk-widgets-menus-choices.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fltk-widgets-menus-choices.adb b/src/fltk-widgets-menus-choices.adb
index 211114f..fc60efc 100644
--- a/src/fltk-widgets-menus-choices.adb
+++ b/src/fltk-widgets-menus-choices.adb
@@ -94,6 +94,7 @@ package body FLTK.Widgets.Menus.Choices is
Extra_Final (This);
if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then
free_fl_choice (This.Void_Ptr);
+ This.Void_Ptr := Null_Pointer;
end if;
end Finalize;