Deallocates memory for the PNM image.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(format_pnm), | intent(inout) | :: | this |
elemental pure subroutine deallocate_pnm(this) class(format_pnm), intent(inout) :: this if (allocated(this%pixels)) deallocate(this%pixels) if (allocated(this%comment)) deallocate(this%comment) end subroutine deallocate_pnm