summaryrefslogtreecommitdiff
path: root/src/fltk-images.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-02-21 18:48:49 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-02-21 18:48:49 +1300
commitfbec75e5847cace1edd5b10e16176f1fba18f969 (patch)
treeba196482bd0e7572e1ed9c442070554fa01c5691 /src/fltk-images.adb
parentc5b296567825c48d3658d62f01ec770449379e85 (diff)
Fl_Tiled_Image binding added
Diffstat (limited to 'src/fltk-images.adb')
-rw-r--r--src/fltk-images.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fltk-images.adb b/src/fltk-images.adb
index b8dff24..f86071e 100644
--- a/src/fltk-images.adb
+++ b/src/fltk-images.adb
@@ -165,7 +165,9 @@ package body FLTK.Images is
if This.Void_Ptr /= System.Null_Address and then
This in Image'Class
then
- free_fl_image (This.Void_Ptr);
+ if This.Needs_Dealloc then
+ free_fl_image (This.Void_Ptr);
+ end if;
This.Void_Ptr := System.Null_Address;
end if;
end Finalize;