diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2016-04-05 20:28:29 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2016-04-05 20:28:29 +0000 |
commit | 1b0236528ceec24b16d6ce91a188b2da240f1a7d (patch) | |
tree | d60e8e282a0eef4c3a50bb8df5f9512d565d3469 /protocols/Gadu-Gadu/src/import.cpp | |
parent | ab2852015641c9aa9aa2588fb21617e31b7da546 (diff) |
Gadu-Gadu: resource leak fixes, cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16590 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/import.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/src/import.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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;
|