Skip to content

Deinitialize all the keys instead of just the first one#5312

Open
SiliconA-Z wants to merge 1 commit intoswiftlang:mainfrom
SiliconA-Z:deinit
Open

Deinitialize all the keys instead of just the first one#5312
SiliconA-Z wants to merge 1 commit intoswiftlang:mainfrom
SiliconA-Z:deinit

Conversation

@SiliconA-Z
Copy link
Copy Markdown
Contributor

No description provided.

@compnerd
Copy link
Copy Markdown
Member

@swift-ci please test

@compnerd
Copy link
Copy Markdown
Member

@swift-ci please test Windows platform

keyArray.append(key)
}
keys.deinitialize(count: 1)
keys.deinitialize(count: count)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we also missing a call to actually initialize the keys? I'm not sure what it means to deinitialize anything at all without first initializing it.

It's probably true that in practice it is not necessary to deinitialize raw pointers at all.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants