Commit 61fbbc5
Anton Ivanov
Use refcounts to manage lifetime of AChoreographer*.
This is more robust then existing new/delete. In particular, current
code has a leak in AChoreographer_create in case initialize() is not
successful.
Bug: 393217449
Test: presubmit
Flag: EXEMPT_refactor
Change-Id: Ib3d84ee58d953a332b14fd852b53b3507defe74f1 parent 78a579c commit 61fbbc5
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
247 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
255 | | - | |
| 259 | + | |
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
| |||
0 commit comments