diff options
Diffstat (limited to 'src/fltk-images-shared.adb')
-rw-r--r-- | src/fltk-images-shared.adb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fltk-images-shared.adb b/src/fltk-images-shared.adb index b9e2a13..fd2663b 100644 --- a/src/fltk-images-shared.adb +++ b/src/fltk-images-shared.adb @@ -138,13 +138,9 @@ package body FLTK.Images.Shared is overriding procedure Finalize (This : in out Shared_Image) is begin - if This.Void_Ptr /= Null_Pointer and then - This in Shared_Image'Class - then + 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; - Finalize (Image (This)); end Finalize; |