diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-03 21:39:25 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-03 21:39:25 +0200 |
commit | 555a5d87cfdd88d838f48a6ee5db1e9e68cdff61 (patch) | |
tree | e41097d8a7a59e3204ed4f71782d9aad2d3e5ab5 | |
parent | 3eb5675465d492c5525de1fbe05d120aa18a08df (diff) |
disable account first, free its object then
-rw-r--r-- | src/mir_app/src/proto_accs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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);
}
}
}
|