Skip to content

Commit 2229d77

Browse files
committed
fix: release allocated string after updating systray
1 parent 4521540 commit 2229d77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/macos_ext.rs

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ impl SystemTray {
7272
unsafe {
7373
let title = NSString::alloc(nil).init_str(title);
7474
NSButton::setTitle_(self.item.0, title);
75+
let _: () = msg_send![title, release];
7576
}
7677
}
7778

0 commit comments

Comments
 (0)