Commit 0e259e2
committed
fix: fix memory leak when cursor buffer is null
The code was incorrectly deleting the QSGNode directly when the cursor
buffer is null, which could cause memory management issues. The proper
way to handle node removal in Qt Quick Scene Graph is to mark the node
as dirty with the DirtyNodeRemoved flag, allowing the scene graph to
properly manage the node's lifecycle.
Log:
Influence:
1. Check that scene graph nodes are properly managed1 parent ab189f5 commit 0e259e2
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
| |||
0 commit comments