Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-988

Client reset config should capture callbacks rather than a config reference

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

      When make_client_reset_config constructs a ClientReset object, it captures a reference to the session config in the notify_after/before lambdas. If the session and its config get destroyed by the time the lambda is invoked, we'll be operating with garbage memory. Since we only use the before/after callbacks from the config, we should just capture those directly.

            Assignee:
            james.stone@mongodb.com James Stone
            Reporter:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: