Commit fbf3c0b
committed
dialog: avoid clearing locked_by after final db cleanup unref
The DB cleanup path temporarily sets locked_by, calls
unref_dlg_unsafe(), and then clears the field again. If that unref drops
the last reference, the dialog is destroyed before the final assignment,
so the reset writes into freed memory. Only clear locked_by when another
reference still exists.1 parent aca9a9a commit fbf3c0b
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1639 | 1639 | | |
1640 | 1640 | | |
1641 | 1641 | | |
1642 | | - | |
| 1642 | + | |
1643 | 1643 | | |
1644 | 1644 | | |
1645 | 1645 | | |
| |||
1697 | 1697 | | |
1698 | 1698 | | |
1699 | 1699 | | |
| 1700 | + | |
1700 | 1701 | | |
1701 | 1702 | | |
1702 | | - | |
| 1703 | + | |
| 1704 | + | |
1703 | 1705 | | |
1704 | 1706 | | |
1705 | 1707 | | |
| |||
2514 | 2516 | | |
2515 | 2517 | | |
2516 | 2518 | | |
2517 | | - | |
| |||
0 commit comments