Fix crash in EditLinkBox destruction.

Fixes #10432.
This commit is contained in:
John Preston 2021-02-24 19:06:52 +04:00
parent 627426f604
commit 2d8e6f9745

View file

@ -120,7 +120,7 @@ void EditInviteLinkBox(
int expireValue = 0;
int usageValue = 0;
};
const auto state = container->lifetime().make_state<State>(State{
const auto state = box->lifetime().make_state<State>(State{
.expireValue = expire,
.usageValue = usage
});