From e19a49c5f06b8999da4fba059e2ecbe53e3fbf5e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 27 Jan 2024 20:59:06 +0300 Subject: =?UTF-8?q?fixes=20#4138=20(AvatarHistory:=20=D0=BF=D0=B0=D0=B4?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B5=20=D0=BF=D0=BB=D0=B0=D0=B3?= =?UTF-8?q?=D0=B8=D0=BD=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/AvatarHistory/src/AvatarHistory.cpp | 1 + plugins/AvatarHistory/src/popup.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp index 747f697cde..672d1d1ac7 100644 --- a/plugins/AvatarHistory/src/AvatarHistory.cpp +++ b/plugins/AvatarHistory/src/AvatarHistory.cpp @@ -341,6 +341,7 @@ int CMPlugin::Load() int CMPlugin::Unload() { + DeInitPopups(); WindowList_Destroy(hAvatarWindowsList); return 0; } diff --git a/plugins/AvatarHistory/src/popup.cpp b/plugins/AvatarHistory/src/popup.cpp index 5639e96032..069b661ded 100644 --- a/plugins/AvatarHistory/src/popup.cpp +++ b/plugins/AvatarHistory/src/popup.cpp @@ -50,7 +50,10 @@ void InitPopups() // Deinitializations needed by popups void DeInitPopups() -{} +{ + if (hPopupWindow) + DestroyWindow(hPopupWindow); +} // Show an error popup -- cgit v1.2.3