package_daemon: fix crash on system update
We can't delete old volume state while it's still active and can be accessed until reboot. Fixes #10898 Signed-off-by: Augustin Cavalier <[email protected]> Signed-off-by: Axel Dörfler <[email protected]>
This commit is contained in:
committed by
Augustin Cavalier
parent
5c0ae35297
commit
d70f22ac30
@@ -1238,7 +1238,8 @@ Volume::_SetLatestState(VolumeState* state, bool isActive)
|
|||||||
fActiveState = state;
|
fActiveState = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete fLatestState;
|
if (fLatestState != fActiveState)
|
||||||
|
delete fLatestState;
|
||||||
fLatestState = state;
|
fLatestState = state;
|
||||||
fChangeCount++;
|
fChangeCount++;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user