We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isEqualToString
1 parent d7202b3 commit 0e783c6Copy full SHA for 0e783c6
cocoa-foundation/src/foundation.rs
@@ -649,6 +649,7 @@ impl NSString for id {
649
unsafe fn isEqualToString(self, other: &str) -> bool {
650
let other = NSString::alloc(nil).init_str(other);
651
let rv: BOOL = msg_send![self, isEqualToString: other];
652
+ let _: () = msg_send![other, release];
653
rv != NO
654
}
655
0 commit comments