From d6331b6e7bbef9facc7e6c8bdc42ed4e7b58668d Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 1 Mar 2015 20:50:59 +0000 Subject: XFire: - Major cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@12294 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/Xfire_voicechat.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 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 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; -- cgit v1.2.3