Commit 9919790
authored
ref(profiling): unref timer (#12340)
Tentative fix for
#12169
I did not generate a core dump, but by looking at the crash, it seemed
like it the segfault was happening after the bindings were required and
the code after the require statement had already ran, which hints at an
issue with the measurement collection loop.
This is a small change, but it ensures that the reference to the timer
is not maintained and can be properly collected, as well as adds a
missing nullptr check.1 parent b85f88e commit 9919790
1 file changed
+19
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
| |||
323 | 328 | | |
324 | 329 | | |
325 | 330 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | 331 | | |
339 | 332 | | |
340 | 333 | | |
| |||
376 | 369 | | |
377 | 370 | | |
378 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
379 | 384 | | |
380 | 385 | | |
381 | 386 | | |
| |||
1049 | 1054 | | |
1050 | 1055 | | |
1051 | 1056 | | |
| 1057 | + | |
1052 | 1058 | | |
1053 | 1059 | | |
1054 | 1060 | | |
| |||
0 commit comments