summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/Xfire_voicechat.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-06-06 21:13:00 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-06-06 21:13:00 +0000
commita8deb4ad5586a2b6a90957a610ad64c8e10e95f1 (patch)
treea157d0d35c9cbca914923fa3cd3e73076c9ea4c7 /protocols/Xfire/src/Xfire_voicechat.cpp
parent1b8647da361135909e3c8f459d8aaffc2475818f (diff)
XFire:
- fix for a typo in r12294 (thx White-Tiger) - fixed memory leaks - minor other fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14032 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/Xfire_voicechat.cpp')
-rw-r--r--protocols/Xfire/src/Xfire_voicechat.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Xfire/src/Xfire_voicechat.cpp b/protocols/Xfire/src/Xfire_voicechat.cpp
index dfb5f89a0a..543d75de6a 100644
--- a/protocols/Xfire/src/Xfire_voicechat.cpp
+++ b/protocols/Xfire/src/Xfire_voicechat.cpp
@@ -329,12 +329,11 @@ BOOL Xfire_voicechat::checkforMumble(SendGameStatus2Packet* packet) {
}
DWORD size = 0;
- MIB_TCPTABLE_OWNER_PID* ptab = NULL;
//tcptabelle holen
GetExtendedTcpTable(NULL, &size, FALSE, AF_INET, TCP_TABLE_OWNER_PID_CONNECTIONS, 0);
//überhaupt was drin?
if (size) {
- ptab = (MIB_TCPTABLE_OWNER_PID*)malloc(size);
+ MIB_TCPTABLE_OWNER_PID *ptab = (MIB_TCPTABLE_OWNER_PID*)malloc(size);
//liste auslesen
if (GetExtendedTcpTable(ptab, &size, FALSE, AF_INET, TCP_TABLE_OWNER_PID_CONNECTIONS, 0) == NO_ERROR)
{
@@ -355,7 +354,7 @@ BOOL Xfire_voicechat::checkforMumble(SendGameStatus2Packet* packet) {
packet->gameid = XFIREVOICECHAT_MUMBLE;
this->currentvoice = XFIREVOICECHAT_MUMBLE;
//table wieder freigeben
- delete ptab;
+ free(ptab);
//mumble läuft + ip gefunden also TRUE
return TRUE;
}