From 1b0236528ceec24b16d6ce91a188b2da240f1a7d Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 5 Apr 2016 20:28:29 +0000 Subject: Gadu-Gadu: resource leak fixes, cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@16590 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Gadu-Gadu/src/import.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'protocols/Gadu-Gadu/src/import.cpp') diff --git a/protocols/Gadu-Gadu/src/import.cpp b/protocols/Gadu-Gadu/src/import.cpp index ee87d05663..0eda9f87f7 100644 --- a/protocols/Gadu-Gadu/src/import.cpp +++ b/protocols/Gadu-Gadu/src/import.cpp @@ -125,7 +125,7 @@ char *strndup(char *str, int c) void GGPROTO::parsecontacts(char *contacts) { - char *p = strchr(contacts, ':'), *n; + char *p = strchr(contacts, ':'), *n = NULL; char *strFirstName, *strLastName, *strNickname, *strNick, *strPhone, *strGroup, *strUin, *strMail; uin_t uin; @@ -250,8 +250,8 @@ void GGPROTO::parsecontacts(char *contacts) ////////////////////////////////////////////////////////// // import from server - -INT_PTR GGPROTO::import_server(WPARAM wParam, LPARAM lParam) +// +INT_PTR GGPROTO::import_server(WPARAM, LPARAM) { // Check if connected if (!isonline()) @@ -289,8 +289,8 @@ INT_PTR GGPROTO::import_server(WPARAM wParam, LPARAM lParam) ////////////////////////////////////////////////////////// // remove from server - -INT_PTR GGPROTO::remove_server(WPARAM wParam, LPARAM lParam) +// +INT_PTR GGPROTO::remove_server(WPARAM, LPARAM) { // Check if connected if (!isonline()) { @@ -328,7 +328,7 @@ INT_PTR GGPROTO::remove_server(WPARAM wParam, LPARAM lParam) return 0; } -INT_PTR GGPROTO::import_text(WPARAM wParam, LPARAM lParam) +INT_PTR GGPROTO::import_text(WPARAM, LPARAM) { TCHAR str[MAX_PATH]; TCHAR filter[512], *pfilter; @@ -399,7 +399,7 @@ INT_PTR GGPROTO::import_text(WPARAM wParam, LPARAM lParam) } } -INT_PTR GGPROTO::export_text(WPARAM wParam, LPARAM lParam) +INT_PTR GGPROTO::export_text(WPARAM, LPARAM) { TCHAR str[MAX_PATH]; OPENFILENAME ofn = {0}; @@ -462,8 +462,8 @@ INT_PTR GGPROTO::export_text(WPARAM wParam, LPARAM lParam) ////////////////////////////////////////////////////////// // export to server - -INT_PTR GGPROTO::export_server(WPARAM wParam, LPARAM lParam) +// +INT_PTR GGPROTO::export_server(WPARAM, LPARAM) { // Check if connected if (!isonline()) @@ -511,7 +511,7 @@ INT_PTR GGPROTO::export_server(WPARAM wParam, LPARAM lParam) ////////////////////////////////////////////////////////// // Import menus and stuff - +// void GGPROTO::import_init(HGENMENU hRoot) { CMenuItem mi; -- cgit v1.2.3