Skip to content

Commit

Permalink
Merge pull request #11 from crabnebula-dev/no-autorelease
Browse files Browse the repository at this point in the history
Remove autorelease on item
  • Loading branch information
lucasfernog-crabnebula authored Dec 7, 2023
2 parents 299442f + 11a8679 commit 5ab90b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/drag/src/platform_impl/macos/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ pub fn start_drag<W: HasRawWindowHandle>(
let nsurl: id = msg_send![class!(NSURL), fileURLWithPath: new_nsstring(&path.display().to_string()) isDirectory: false];
let drag_item: id = msg_send![class!(NSDraggingItem), alloc];
let item: id = msg_send![drag_item, initWithPasteboardWriter: nsurl];
let _: () = msg_send![item, autorelease];

let _: () = msg_send![item, setDraggingFrame: image_rect contents: img];

Expand Down

0 comments on commit 5ab90b4

Please sign in to comment.