mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1226144 - Free sessionId after using it. r=selin
This commit is contained in:
parent
774b0d2e97
commit
2668b676c8
@ -254,8 +254,11 @@ PresentationIPCService::NotifyReceiverReady(const nsAString& aSessionId,
|
|||||||
mRespondingSessionIds.Put(aWindowId, new nsAutoString(aSessionId));
|
mRespondingSessionIds.Put(aWindowId, new nsAutoString(aSessionId));
|
||||||
mRespondingWindowIds.Put(aSessionId, aWindowId);
|
mRespondingWindowIds.Put(aSessionId, aWindowId);
|
||||||
|
|
||||||
mCallback = nullptr;
|
|
||||||
NS_WARN_IF(!sPresentationChild->SendNotifyReceiverReady(nsAutoString(aSessionId)));
|
NS_WARN_IF(!sPresentationChild->SendNotifyReceiverReady(nsAutoString(aSessionId)));
|
||||||
|
|
||||||
|
// Release mCallback after using aSessionId
|
||||||
|
// because aSessionId is held by mCallback.
|
||||||
|
mCallback = nullptr;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user