Commit d514ab2
committed
Fixes use after free in redo of "Create Custom Bone2D(s) from Node(s)"
Using "queue_free" on the undo of the creation of the Bone2D meant that on the redo the Bone2D was already deleted.
Replaced it with "add_do_reference", so when the Action of the undo_redo is destroyed, also destroys the Bone2D.1 parent 9aed9ec commit d514ab2
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4805 | 4805 | | |
4806 | 4806 | | |
4807 | 4807 | | |
| 4808 | + | |
4808 | 4809 | | |
4809 | 4810 | | |
4810 | 4811 | | |
| 4812 | + | |
4811 | 4813 | | |
4812 | | - | |
4813 | 4814 | | |
4814 | 4815 | | |
4815 | 4816 | | |
| |||
0 commit comments