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