Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8669

Always use setters to fix memory issues without ARC

    XMLWordPrintableJSON

    Details

      Description

      https://github.com/apache/cordova-plugin-file/pull/104

      Encountered memory issues with a non-ARC project (cordova+unity3d). Setter should be used to prevent memory issues, eg:

      A synthesized retained setter looks like :

      - (void)setValue: (id)newValue
      {
          if (value != newValue)
          {
              [value release];
              value = newValue;
              [value retain];
          }
      } 
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgcrea Olivier Louvignes
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: