diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-27 20:59:06 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-27 20:59:06 +0300 |
commit | e19a49c5f06b8999da4fba059e2ecbe53e3fbf5e (patch) | |
tree | 982e3b4ddb196ce4e73c1d0fc9773408cfb03dcb /plugins | |
parent | a1a0b8dcc8ea3a96a03476a2002e09aeb7608736 (diff) |
fixes #4138 (AvatarHistory: падение при выгрузке плагина)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/AvatarHistory/src/AvatarHistory.cpp | 1 | ||||
-rw-r--r-- | plugins/AvatarHistory/src/popup.cpp | 5 |
2 files changed, 5 insertions, 1 deletions
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
|