diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-12 19:05:01 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-12 19:05:01 +0000 |
commit | fe2c3dda8f60afa17a18f3f687b9d5eb04ed5d07 (patch) | |
tree | a01d9f2e147a713e8994c1cfcb4d3dccc7b3337c /protocols/Skype/src/skype_dialogs.cpp | |
parent | 9c63954b6766e378a841e7f32190a3278dc43e60 (diff) |
Skype memory leaks fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@4926 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_dialogs.cpp')
-rw-r--r-- | protocols/Skype/src/skype_dialogs.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp index 7c7d88ebcf..883a0227e0 100644 --- a/protocols/Skype/src/skype_dialogs.cpp +++ b/protocols/Skype/src/skype_dialogs.cpp @@ -705,7 +705,7 @@ INT_PTR CALLBACK CSkypeProto::HomeSkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wP {
if (g_countries[i].id != 0xFFFF && g_countries[i].id != 0)
{
- wchar_t *country = mir_a2t(g_countries[i].szName);
+ ptrT country( mir_a2t(g_countries[i].szName));
int nItem = ::SendMessage(
::GetDlgItem(hwndDlg, IDC_COUNTRY),
CB_ADDSTRING,
@@ -720,8 +720,6 @@ INT_PTR CALLBACK CSkypeProto::HomeSkypeDlgProc(HWND hwndDlg, UINT msg, WPARAM wP if (countr && ::wcscmp(country, countr) == 0)
::SendMessage(GetDlgItem(hwndDlg, IDC_COUNTRY), CB_SETCURSEL, nItem, 0);
-
- ::mir_free(country);
}
}
|