From b36c9706b96a6497a0401a1fc63507d1dd456dc6 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 2 Jul 2021 10:58:18 +0900 Subject: [PATCH] fix: do not leak NSUUID --- shell/browser/notifications/mac/cocoa_notification.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/notifications/mac/cocoa_notification.mm b/shell/browser/notifications/mac/cocoa_notification.mm index d0640ce859193..085b6938771ea 100644 --- a/shell/browser/notifications/mac/cocoa_notification.mm +++ b/shell/browser/notifications/mac/cocoa_notification.mm @@ -33,7 +33,7 @@ NSString* identifier = [NSString stringWithFormat:@"%@:notification:%@", [[NSBundle mainBundle] bundleIdentifier], - [[[NSUUID alloc] init] UUIDString]]; + [[NSUUID UUID] UUIDString]]]; [notification_ setTitle:base::SysUTF16ToNSString(options.title)]; [notification_ setSubtitle:base::SysUTF16ToNSString(options.subtitle)];