Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8A36172CA for ; Fri, 13 Mar 2015 12:01:38 +0000 (UTC) Received: (qmail 88372 invoked by uid 500); 13 Mar 2015 12:01:38 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 88348 invoked by uid 500); 13 Mar 2015 12:01:38 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 88330 invoked by uid 99); 13 Mar 2015 12:01:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2015 12:01:38 +0000 Date: Fri, 13 Mar 2015 12:01:38 +0000 (UTC) From: "Olivier Louvignes (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-8669) Always use setters to fix memory issues without ARC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Olivier Louvignes created CB-8669: ------------------------------------- Summary: Always use setters to fix memory issues without ARC Key: CB-8669 URL: https://issues.apache.org/jira/browse/CB-8669 Project: Apache Cordova Issue Type: Bug Components: Plugin File Reporter: Olivier Louvignes 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]; } } -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org