summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/Xfire_voicechat.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-03-01 20:50:59 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-03-01 20:50:59 +0000
commitd6331b6e7bbef9facc7e6c8bdc42ed4e7b58668d (patch)
tree44032474a6abe389fcc2c5302743c019f95d7074 /protocols/Xfire/src/Xfire_voicechat.cpp
parentcbf1506b70dfa0e5e6a7ef9107b6e0f127d7724e (diff)
XFire:
- Major cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@12294 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/Xfire_voicechat.cpp')
-rw-r--r--protocols/Xfire/src/Xfire_voicechat.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Xfire/src/Xfire_voicechat.cpp b/protocols/Xfire/src/Xfire_voicechat.cpp
index 878ffc951c..dfb5f89a0a 100644
--- a/protocols/Xfire/src/Xfire_voicechat.cpp
+++ b/protocols/Xfire/src/Xfire_voicechat.cpp
@@ -215,8 +215,7 @@ HMODULE Xfire_voicechat::loadTSR(char* path, BOOL nolocaltest) {
//teamspeak 3 detection, benötigt ts3plugin
-BOOL Xfire_voicechat::checkforTS3(SendGameStatus2Packet* packet) {
- ts3IPPORT* ipport = NULL;
+BOOL Xfire_voicechat::checkforTS3(SendGameStatus2Packet *packet) {
//kein gültiger verweis?
if (packet == NULL)
return FALSE;
@@ -226,7 +225,7 @@ BOOL Xfire_voicechat::checkforTS3(SendGameStatus2Packet* packet) {
if (hMapObject == NULL)
return FALSE;
//versuch ipport zubesorgen
- ipport = (ts3IPPORT *)MapViewOfFile(hMapObject, FILE_MAP_READ, 0, 0, sizeof(ts3IPPORT));
+ ts3IPPORT *ipport = (ts3IPPORT *)MapViewOfFile(hMapObject, FILE_MAP_READ, 0, 0, sizeof(ts3IPPORT));
//fehler beim zugriff auf filemap?
if (ipport == NULL)
{
@@ -362,7 +361,7 @@ BOOL Xfire_voicechat::checkforMumble(SendGameStatus2Packet* packet) {
}
}
}
- delete ptab;
+ free(ptab);
}
return FALSE;