Commit 38907cb
authored
Fix get_device_name memory leak by using CFRetained for device name (#147)
I would've used CFRelease, but that isn't a public function. CFRetained
calls CFRelease under the hood when it's dropped, so this is the next
best thing.
I noticed this leak when running instruments on Zed, please let me know
if I missed anything.1 parent d0545fc commit 38907cb
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
0 commit comments