From 555a5d87cfdd88d838f48a6ee5db1e9e68cdff61 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 3 May 2018 21:39:25 +0200 Subject: disable account first, free its object then --- src/mir_app/src/proto_accs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mir_app/src/proto_accs.cpp b/src/mir_app/src/proto_accs.cpp index 1d3037eb61..68b61a17ae 100644 --- a/src/mir_app/src/proto_accs.cpp +++ b/src/mir_app/src/proto_accs.cpp @@ -408,8 +408,8 @@ void KillModuleAccounts(HINSTANCE hInst) for (auto &pa : accounts.rev_iter()) { if (!mir_strcmp(pa->szProtoName, pd->szName)) { - DeactivateAccount(pa, DAF_DYNAMIC); pa->bDynDisabled = true; + DeactivateAccount(pa, DAF_DYNAMIC); } } } -- cgit v1.2.3