Skip to content

Commit

Permalink
fix: do not leak NSUUID (#30009)
Browse files Browse the repository at this point in the history
* fix: do not leak NSUUID

* Fix build error

Co-authored-by: Cheng Zhao <[email protected]>
  • Loading branch information
trop[bot] and zcbenz authored Jul 5, 2021
1 parent 642c458 commit 5ab2749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/notifications/mac/cocoa_notification.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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)];
Expand Down

0 comments on commit 5ab2749

Please sign in to comment.