Uploaded image for project: 'SWORD'
  1. SWORD
  2. API-190

swld.cpp at line 111 "delete buf;"

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.50
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      Xcode was warning me that in PocketSword's Sword framework, swld.cpp at line 111 with

      "delete buf;"
      may be wrong and it should perhaps be

      "delete[] buf;"
      instead.

      I looked at the code and I think Xcode is correct in that the variable is an array and needs the brackets to delete properly. I asked about this in the mailing list in Oct. 2016 and it seems confirmed that this is a bug which needs fixing.

      -TS

        Attachments

          Activity

            People

            • Assignee:
              refdoc Peter von Kaehne
              Reporter:
              nikextra T Shen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: