From a8deb4ad5586a2b6a90957a610ad64c8e10e95f1 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 6 Jun 2015 21:13:00 +0000 Subject: 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 --- protocols/Xfire/src/Xfire_voicechat.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Xfire/src/Xfire_voicechat.cpp') 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; } -- cgit v1.2.3