Skip to content

Conversation

@IComplainInComments
Copy link

Here is the new pull request without the use of autorelease, Im not master at Objective-C memory management so please ignore how primitive it is.

…by nullptrs or potential memory leakage in Obj-C. These were provided by Clang's Static Analyzer, and fixes by myself.
Copy link
Author

Choose a reason for hiding this comment

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

Fixes a non-released coreFoundation object

Copy link
Author

Choose a reason for hiding this comment

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

Fixes a retain object issue.

Copy link
Author

Choose a reason for hiding this comment

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

This can be ignored/deleted

Copy link
Author

Choose a reason for hiding this comment

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

Fixes a buffer overflow issue detected while using Address Sanitation.

Copy link
Author

Choose a reason for hiding this comment

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

Added back some data that I misread, and verified in testing (to be sure this time) that it is not bug causing, and does indeed provide needed functionality.

Copy link
Author

Choose a reason for hiding this comment

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

My attempt at objc memory management to remove retained objects, so they're GC'd.

@SamoZ256
Copy link
Owner

SamoZ256 commented Aug 7, 2025

@IComplainInComments This PR is starting to become a mess. I'd suggest starting over and make just the changes I mentioned in the previous one + the MTL_GENERAL_SHADER_TYPE_TOTAL fix. Also, limit your scope just to the Metal renderer, Discord RPC is really not something we should modify. As for resources on Cemu: I don't know any honestly.

@IComplainInComments
Copy link
Author

@IComplainInComments This PR is starting to become a mess. I'd suggest starting over and make just the changes I mentioned in the previous one + the MTL_GENERAL_SHADER_TYPE_TOTAL fix. Also, limit your scope just to the Metal renderer, Discord RPC is really not something we should modify. As for resources on Cemu: I don't know any honestly.

Yeah I didnt mean to sync all that, I usually dont use Xcode, and its ruining my flow. Ill get this cleaned up and resubmit.

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.

2 participants