зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1787001 - Fix leaking COM object. r=nalexander
`ComPtr` constructor increments the refcount when initializing with a raw COM pointer. Differential Revision: https://phabricator.services.mozilla.com/D155525
This commit is contained in:
Родитель
7516af27de
Коммит
f965aff863
|
@ -664,8 +664,6 @@ static bool NotificationStillPresent(
|
|||
HRESULT
|
||||
ToastNotificationHandler::OnDismiss(IToastNotification* notification,
|
||||
IToastDismissedEventArgs* aArgs) {
|
||||
// AddRef as ComPtr doesn't own the object and shouldn't release.
|
||||
notification->AddRef();
|
||||
ComPtr<IToastNotification> comptrNotification(notification);
|
||||
// Don't dismiss notifications when they are still in the action center. We
|
||||
// can receive multiple dismiss events.
|
||||
|
|
Загрузка…
Ссылка в новой задаче