diff options
Diffstat (limited to 'src/fltk-devices-surfaces.adb')
-rw-r--r-- | src/fltk-devices-surfaces.adb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fltk-devices-surfaces.adb b/src/fltk-devices-surfaces.adb index cee6910..58a5fa0 100644 --- a/src/fltk-devices-surfaces.adb +++ b/src/fltk-devices-surfaces.adb @@ -39,6 +39,7 @@ package body FLTK.Devices.Surfaces is begin if This.Void_Ptr /= Null_Pointer and This.Needs_Dealloc then free_fl_surface (This.Void_Ptr); + This.Void_Ptr := Null_Pointer; end if; end Finalize; |