summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/metacontacts/meta_services.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp
index b0567ebbfd..7a1fb8ad6e 100644
--- a/src/modules/metacontacts/meta_services.cpp
+++ b/src/modules/metacontacts/meta_services.cpp
@@ -40,7 +40,7 @@ HANDLE
UINT_PTR setStatusTimerId = 0;
BOOL firstSetOnline = TRUE; // see Meta_SetStatus function
-LIST<void> arMetaWindows(1, HandleKeySortT);
+LIST<void> arMetaWindows(1);
/** Get the capabilities of the "MetaContacts" protocol.
*
@@ -555,7 +555,9 @@ int Meta_MessageWindowEvent(WPARAM wParam, LPARAM lParam)
}
}
else if (mwed->uType == MSG_WINDOW_EVT_CLOSING) {
- arMetaWindows.remove(mwed->hwndWindow);
+ for (int i = 0; i < arMetaWindows.getCount(); i++)
+ if (arMetaWindows[i] == mwed->hwndWindow)
+ arMetaWindows.remove(i);
}
return 0;
}