flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mihai Chira (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34421) SpellUI.as has memory leak by keeping pointers to text fields when disableSpelling() is called
Date Wed, 03 Sep 2014 11:40:52 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mihai Chira updated FLEX-34421:
-------------------------------
    Description: 
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: {code}_parentTable[txt] = comp{code}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.

FYI see [this mailing list thread|http://mail-archives.apache.org/mod_mbox/flex-dev/201407.mbox/%3CCAP1cEXGZzYmQDzkBfuejP8SqrNVdzN6%3DQK1gRtJ24dpGF_y%3D%2Bw%40mail.gmail.com%3E].

  was:
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.


> 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: {code}_parentTable[txt] = comp{code}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.
> FYI see [this mailing list thread|http://mail-archives.apache.org/mod_mbox/flex-dev/201407.mbox/%3CCAP1cEXGZzYmQDzkBfuejP8SqrNVdzN6%3DQK1gRtJ24dpGF_y%3D%2Bw%40mail.gmail.com%3E].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message