From b2f485d9dfe25c2006fe2a1ace9a7ed1a9a9162f Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 24 Nov 2024 13:55:54 +1300 Subject: Fixed double free in Finalize subprograms --- src/fltk-images-shared.adb | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fltk-images-shared.adb') diff --git a/src/fltk-images-shared.adb b/src/fltk-images-shared.adb index fd2663b..d475cc3 100644 --- a/src/fltk-images-shared.adb +++ b/src/fltk-images-shared.adb @@ -140,6 +140,7 @@ package body FLTK.Images.Shared is begin if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then fl_shared_image_release (This.Void_Ptr); + This.Void_Ptr := Null_Pointer; end if; end Finalize; -- cgit