From c475a38756f0f7a0404b62e6c4f924ca9900b25a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Apr 2018 17:19:31 +0300 Subject: no need to work after shutdown --- plugins/UserInfoEx/src/mir_menuitems.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/UserInfoEx/src/mir_menuitems.cpp b/plugins/UserInfoEx/src/mir_menuitems.cpp index d5966d1574..8a3986996e 100644 --- a/plugins/UserInfoEx/src/mir_menuitems.cpp +++ b/plugins/UserInfoEx/src/mir_menuitems.cpp @@ -481,6 +481,9 @@ void RebuildSubGroup() **/ INT_PTR RebuildAccount(WPARAM, LPARAM lParam) { + if (Miranda_IsTerminated()) + return 0; + const BYTE mItems = 3; // menuitems to create BYTE item = 0; -- cgit v1.2.3