From issues-return-6769-apmail-flex-issues-archive=flex.apache.org@flex.apache.org Tue Sep 2 10:26:26 2014 Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-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 69A9B11897 for ; Tue, 2 Sep 2014 10:26:26 +0000 (UTC) Received: (qmail 88383 invoked by uid 500); 2 Sep 2014 10:26:21 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 88351 invoked by uid 500); 2 Sep 2014 10:26:21 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 88341 invoked by uid 99); 2 Sep 2014 10:26:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2014 10:26:21 +0000 Date: Tue, 2 Sep 2014 10:26:21 +0000 (UTC) From: "Justin Mclean (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-34421) SpellUI.as has memory leak by keeping pointers to text fields when disableSpelling() is called MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-34421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14118077#comment-14118077 ] Justin Mclean commented on FLEX-34421: -------------------------------------- If you've not already you may want to check enableSpelling: // TODO: dangerous, is garbage collection going to clear this? _UITable[comp]=new SpellUI(txt, lang); _parentTable[txt] = comp; _cacheDictTable[comp]=lang; > SpellUI.as has memory leak by keeping pointers to text fields when disableSpelling() is called > ---------------------------------------------------------------------------------------------- > > Key: FLEX-34421 > URL: https://issues.apache.org/jira/browse/FLEX-34421 > Project: Apache Flex > Issue Type: Bug > Components: No Component > Affects Versions: Squiggly 1.0 > Reporter: Mihai Chira > Assignee: Mihai Chira > Priority: Minor > Labels: squiggly > > Both versions of SpellUI.as (from AdobeSpellingUI and AdobeSpellingUIEx) store a reference to the "text model" of a component (a TextField or a RichEditableText instance) when spell checking is enabled ("_parentTable[txt] = comp"), but fail to remove it when spell checking is disabled. This way the components are prevented from being garbage collected. > We should remove these references when spell checking is disabled. -- This message was sent by Atlassian JIRA (v6.3.4#6332)