summaryrefslogtreecommitdiff
path: root/src/fltk-menu_items.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-menu_items.adb')
-rw-r--r--src/fltk-menu_items.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fltk-menu_items.adb b/src/fltk-menu_items.adb
index 73e4c3c..b93f1f5 100644
--- a/src/fltk-menu_items.adb
+++ b/src/fltk-menu_items.adb
@@ -230,6 +230,7 @@ package body FLTK.Menu_Items is
begin
if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then
free_fl_menu_item (This.Void_Ptr);
+ This.Void_Ptr := Null_Pointer;
end if;
end Finalize;