You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2014/09/02 12:26:21 UTC

[jira] [Commented] (FLEX-34421) SpellUI.as has memory leak by keeping pointers to text fields when disableSpelling() is called

    [ 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)