Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gio: Don't wrongly cast DataInputStream byte arrays to a const pointer #1238

Merged
merged 2 commits into from Dec 3, 2023

Conversation

sdroege
Copy link
Member

@sdroege sdroege commented Dec 3, 2023

See #1237


Also don't use Vec<u8> in a few places to avoid needless copies. Only the first commit should be backported to 0.18.

They're transfer full and need to be freed, which wouldn't be possible
for a const pointer.

Fixes gtk-rs#1237
…pies

The returned values are already transfer full so copying them to a `Vec`
is unnecessary.
@sdroege sdroege merged commit 6b1bdba into gtk-rs:master Dec 3, 2023
48 checks passed
@sdroege sdroege deleted the data-input-stream-no-const branch December 3, 2023 15:15
@sdroege sdroege removed the needs-backport PR needs backporting to the current stable branch label Dec 10, 2023
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.

None yet

2 participants