summaryrefslogtreecommitdiff
path: root/src/fltk-devices-surfaces-paged-printers.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-11-24 13:55:54 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-11-24 13:55:54 +1300
commitb2f485d9dfe25c2006fe2a1ace9a7ed1a9a9162f (patch)
tree265c83477aa8a1fbedded08f19789811adc03fa2 /src/fltk-devices-surfaces-paged-printers.adb
parent7739cbdfccea91e242fa6cecaf0d89e9695dc0e0 (diff)
Fixed double free in Finalize subprograms
Diffstat (limited to 'src/fltk-devices-surfaces-paged-printers.adb')
-rw-r--r--src/fltk-devices-surfaces-paged-printers.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fltk-devices-surfaces-paged-printers.adb b/src/fltk-devices-surfaces-paged-printers.adb
index 944efa6..601f425 100644
--- a/src/fltk-devices-surfaces-paged-printers.adb
+++ b/src/fltk-devices-surfaces-paged-printers.adb
@@ -142,6 +142,7 @@ package body FLTK.Devices.Surfaces.Paged.Printers is
begin
if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then
free_fl_printer (This.Void_Ptr);
+ This.Void_Ptr := Null_Pointer;
end if;
end Finalize;