You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
In Xcode running Product - Analyze does not detect issues in the code.
Actual behavior:
Xcode detects memory leaks in ObjcUtils.getImageFrom such as this one:
/Users/low-batt/Documents/builds/iina-official/iina/iina/ObjcUtils.m:106:3 Potential leak of an object stored into 'cgImage'
Xcode is correctly detecting a missing call to CGImageRelease.
However, there is no need to correct this code. Commit 3520ac9 changed PlayerCore.screenshotCallback, removing the call to MPVController.getScreenshot, the only code that calls ObjcUtils.getImageFrom. The offending code is no longer used and can be removed.
Steps to reproduce:
In Xcode click on the Analyze menu item under the Product menu.
MPV does not have this problem.
How often does this happen?
Every time.
The text was updated successfully, but these errors were encountered:
This commit will:
- Remove the method MPVController.getScreenshot
- Remove the method ObjcUtils.getImageFrom
IINA was not leaking memory. The memory leak Xcode detected was in code
that is no longer used.
This commit will:
- Remove the method MPVController.getScreenshot
- Remove the method ObjcUtils.getImageFrom
IINA was not leaking memory. The memory leak Xcode detected was in code
that is no longer used.
System and IINA version:
Expected behavior:
In Xcode running
Product
-Analyze
does not detect issues in the code.Actual behavior:
Xcode detects memory leaks in
ObjcUtils.getImageFrom
such as this one:Xcode is correctly detecting a missing call to CGImageRelease.
However, there is no need to correct this code. Commit 3520ac9 changed
PlayerCore.screenshotCallback
, removing the call toMPVController.getScreenshot
, the only code that callsObjcUtils.getImageFrom
. The offending code is no longer used and can be removed.Steps to reproduce:
In Xcode click on the
Analyze
menu item under theProduct
menu.How often does this happen?
Every time.
The text was updated successfully, but these errors were encountered: