Fixed the lifetime of the ValueEventRegistration that is associated with Transactions. Transactions that required multiple attempts to commit their changes were seeing a crash because the registration was being cleaned up before the events were posted, resulting in a call to an object that had already been deleted.
Fixed the lifetime of the ValueEventRegistration that is associated with
Transactions. Transactions that required multiple attempts to commit their
changes were seeing a crash because the registration was being cleaned up
before the events were posted, resulting in a call to an object that had
already been deleted.

PiperOrigin-RevId: 264777902

firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk,firebase/firebase-cpp-sdk