mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: do not leak NSUUID (#30008)
* fix: do not leak NSUUID * Fix build error Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ void CocoaNotification::Show(const NotificationOptions& options) {
|
||||
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)];
|
||||
|
||||
Reference in New Issue
Block a user