Skip to content

Commit

Permalink
fix: do not leak NSUUID (electron#29990)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz authored and BlackHole1 committed Aug 27, 2021
1 parent 874b6a7 commit 082105a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/notifications/mac/cocoa_notification.mm
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 082105a

Please sign in to comment.