summaryrefslogtreecommitdiff
path: root/protocols/Steam/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-06 12:51:25 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-06 12:51:25 +0300
commit8ae640863b5ad766fffa77b32412924bc078419e (patch)
tree8ed589ac1ee91992a4ad4aa460d271fac3f1bc7c /protocols/Steam/src
parent5eb5e564b4d8d506470baa0b3f11814563cb5087 (diff)
minor code cleaning
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r--protocols/Steam/src/steam_chats.cpp2
-rw-r--r--protocols/Steam/src/steam_contacts.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_chats.cpp b/protocols/Steam/src/steam_chats.cpp
index 8e956b33ff..650e1bcfe1 100644
--- a/protocols/Steam/src/steam_chats.cpp
+++ b/protocols/Steam/src/steam_chats.cpp
@@ -197,6 +197,8 @@ void CSteamProto::OnLeftChat(const CChatRoomLeaveChatRoomGroupResponse&, const C
db_delete_contact(cc);
}
+
+ delete pGroupId;
}
}
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp
index 9bc052a324..0e012d8351 100644
--- a/protocols/Steam/src/steam_contacts.cpp
+++ b/protocols/Steam/src/steam_contacts.cpp
@@ -363,6 +363,9 @@ void CSteamProto::OnGotFriendList(const CMsgClientFriendsList &reply, const CMsg
// Check and update contacts in database
for (auto &hContact : AccContacts()) {
+ if (Contact::IsGroupChat(hContact))
+ continue;
+
int64_t steamId(GetId(hContact, DBKEY_STEAM_ID));
if (!steamId)
continue;