diff options
Diffstat (limited to 'src/fltk-images-bitmaps.adb')
-rw-r--r-- | src/fltk-images-bitmaps.adb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fltk-images-bitmaps.adb b/src/fltk-images-bitmaps.adb index 7921fa9..68c7253 100644 --- a/src/fltk-images-bitmaps.adb +++ b/src/fltk-images-bitmaps.adb @@ -66,13 +66,9 @@ package body FLTK.Images.Bitmaps is overriding procedure Finalize (This : in out Bitmap) is begin - if This.Void_Ptr /= Null_Pointer and then - This in Bitmap'Class - then + if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then free_fl_bitmap (This.Void_Ptr); - This.Void_Ptr := Null_Pointer; end if; - Finalize (Image (This)); end Finalize; |