Skip to content

Commit

Permalink
Fix a crash in set_auto_start() on arm64 (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
rumtid authored Jun 17, 2024
1 parent c92b475 commit 8fa2954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/utils-mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void set_auto_start(bool enabled)
/*outLabel*/ NULL);
if (err != noErr) {
if (icon)
CFRelease(icon);
ReleaseIconRef(icon);
icon = NULL;
}
}
Expand All @@ -279,7 +279,7 @@ void set_auto_start(bool enabled)
if (newItem)
CFRelease(newItem);
if (icon)
CFRelease(icon);
ReleaseIconRef(icon);
} else if (!enabled && found) {
LSSharedFileListItemRemove(loginItems, existingItem);
}
Expand Down

0 comments on commit 8fa2954

Please sign in to comment.