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

Commits on Dec 3, 2023

  1. gio: Don't wrongly cast DataInputStream byte arrays to a const pointer

    They're transfer full and need to be freed, which wouldn't be possible
    for a const pointer.
    
    Fixes gtk-rs#1237
    sdroege committed Dec 3, 2023
    Configuration menu
    Copy the full SHA
    d43af6a View commit details
    Browse the repository at this point in the history
  2. gio: Use Slice<u8> in a few places instead of Vec<u8> to avoid co…

    …pies
    
    The returned values are already transfer full so copying them to a `Vec`
    is unnecessary.
    sdroege committed Dec 3, 2023
    Configuration menu
    Copy the full SHA
    755e082 View commit details
    Browse the repository at this point in the history