summaryrefslogtreecommitdiff
path: root/src/fltk-labels.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-labels.adb')
-rw-r--r--src/fltk-labels.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fltk-labels.adb b/src/fltk-labels.adb
index 4f5ff28..006db6b 100644
--- a/src/fltk-labels.adb
+++ b/src/fltk-labels.adb
@@ -139,6 +139,7 @@ package body FLTK.Labels is
begin
if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then
free_fl_label (This.Void_Ptr);
+ This.Void_Ptr := Null_Pointer;
Interfaces.C.Strings.Free (This.My_Text);
end if;
end Finalize;