From 082105a3341e808b158be90d7d91e7c62d6b7b3f Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 5 Jul 2021 08:45:00 +0900 Subject: [PATCH] fix: do not leak NSUUID (#29990) --- 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)];