Skip to content

Fix NSDataLink so that the tests pass#452

Open
gcasa wants to merge 1 commit into
masterfrom
nsdatalink_fix
Open

Fix NSDataLink so that the tests pass#452
gcasa wants to merge 1 commit into
masterfrom
nsdatalink_fix

Conversation

@gcasa

@gcasa gcasa commented Jul 1, 2026

Copy link
Copy Markdown
Member

Fix some issues with NSDataLink the test should now pass. Also make sure the class works as specified.

@gcasa gcasa marked this pull request as ready for review July 1, 2026 22:16
@gcasa gcasa requested a review from fredkiefer as a code owner July 1, 2026 22:16
Comment thread Source/NSDataLink.m
[aCoder decodeValueOfObjCType: @encode(int) at: &_disposition];
[aCoder decodeValueOfObjCType: @encode(int) at: &_updateMode];
[aCoder decodeValueOfObjCType: @encode(id) at: &_lastUpdateTime];
[aCoder decodeValueOfObjCType: @encode(id) at: &obj];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this call already retains the object. You could switch to decodeObject:, where there is an additional autorelease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants