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

Always use setters to fix memory issues without ARC

VotersStop watchingWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mgcrea Olivier Louvignes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment