Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-614

Leaking objects when registering session listeners

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      Callbacks for progress and connection state listeners holds references to sessions that are not released when removing the listeners. 

      This was introduced for connection listeners in https://github.com/realm/realm-java/pull/6884/files#diff-8c785429417eedf1dd260bab03dafcb1R258

      but similar issue exist for progress listener.

      Address leftover review comment from: https://github.com/realm/realm-java/pull/6884:

      We should probably rename the java_syncmanager_class variables as that is no longer accurate

            Assignee:
            clemente.tort@mongodb.com Clemente Tort Barbero
            Reporter:
            claus.rorbech@mongodb.com Claus Rørbech (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: