diff options
Diffstat (limited to 'src/fltk-images-tiled.adb')
-rw-r--r-- | src/fltk-images-tiled.adb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/fltk-images-tiled.adb b/src/fltk-images-tiled.adb index ee2ce02..a489f82 100644 --- a/src/fltk-images-tiled.adb +++ b/src/fltk-images-tiled.adb @@ -83,13 +83,9 @@ package body FLTK.Images.Tiled is overriding procedure Finalize (This : in out Tiled_Image) is begin - if This.Void_Ptr /= Null_Pointer and then - This in Tiled_Image'Class - then + if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then free_fl_tiled_image (This.Void_Ptr); - This.Void_Ptr := Null_Pointer; end if; - Finalize (Image (This)); end Finalize; |