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

Fix MemoryCard (Folders) crash #5826

Merged
merged 1 commit into from
Apr 5, 2022
Merged

Fix MemoryCard (Folders) crash #5826

merged 1 commit into from
Apr 5, 2022

Conversation

OdinVex
Copy link
Contributor

@OdinVex OdinVex commented Apr 5, 2022

Description of Changes

Removes erroneous unmanaged cleanup of managed code. Fixes #5818.

Rationale behind Changes

loadYamlFile calls OpenManagedCFile which handles closing the file-handle used. Thus, closing the file-handle outside the API call to OpenManagedCFile is not necessary. This prevents crashing on systems such as Linux.

`loadYamlFile` calls `OpenManagedCFile` which handles closing the file-handle used. Thus, closing the file-handle outside the API call to `OpenManagedCFile` is not necessary.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for submitting a contribution to PCSX2

As this is your first pull request, please be aware of the contributing guidelines.

Additionally, as per recent changes in GitHub Actions, your pull request will need to be approved by a maintainer before GitHub Actions can run against it. You can find more information about this change here.

Please be patient until this happens. In the meantime if you'd like to confirm the builds are passing, you have the option of opening a PR on your own fork, just make sure your fork's master branch is up to date!

OdinVex referenced this pull request Apr 5, 2022
@refractionpcsx2
Copy link
Member

It's best to put "Fixes #5818" in the OP, that way when we merge it, it will automatically close the issue :)

Copy link
Contributor Author

@OdinVex OdinVex left a comment

Choose a reason for hiding this comment

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

It's best to put "Fixes #5818" in the OP, that way when we merge it, it will automatically close the issue :)

Added, wasn't aware GitHub could do that.

Reviewed a second time, it stands up and has been confirmed by @stenzek, see ddfe6ac comments for more info.

@refractionpcsx2 refractionpcsx2 merged commit 059f588 into PCSX2:master Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Crash accessing memory cards
3 participants