Commit a6b963b
authored
Fix potential memory leak on Apple platforms (#1130)
In XR.mm when the call to `CVMetalTextureCacheCreateTextureFromImage` fails, the texture reference is not being released. In the Xcode AR example the texture reference is explicitly released when `CVMetalTextureCacheCreateTextureFromImage` fails, so we should probably do the same thing to make sure no memory is being leaked.1 parent 03f314e commit a6b963b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
0 commit comments