CommonComponentAccessibility.createWithParent isWrapped causes mem leak

XMLWordPrintable

        In the method

        +[CommonComponentAccessibility createWithParent:accessible:role:index:withEnv:withView:isWrapped:]

        the isWrapped arg is used to create an a11y element which is wrapped into an object that does not have direct peer in Java like ListRowAccessibility, TableRowAccessibility. In the current implementation these objects leak, because when the wrapped element is created (isWrapped == YES), the native pointer to the element is rewritten in the associated java peer (the 'accessible' arg) and the element object is then released via the CFRetainedResource mechanism. However the wrapping object (ListRowAccessibility, TableRowAccessibility) is never released.

        The wrapping logic should thus be reimplemented.

              Assignee:
              Anton Tarasov (Inactive)
              Reporter:
              Anton Tarasov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: