From 15dafd06973f1a3a49faeeb7b781bd11f9e011a5 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 6 Oct 2012 09:54:57 +0000 Subject: - added part of contact info loading git-svn-id: http://svn.miranda-ng.org/main/trunk@1790 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_dialogs.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'protocols/Skype/src/skype_dialogs.cpp') diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp index eee1e393f8..72fa4b2613 100644 --- a/protocols/Skype/src/skype_dialogs.cpp +++ b/protocols/Skype/src/skype_dialogs.cpp @@ -13,8 +13,13 @@ INT_PTR CALLBACK CSkypeProto::SkypeAccountProc(HWND hwnd, UINT message, WPARAM w proto = reinterpret_cast(lparam); SetWindowLongPtr(hwnd, GWLP_USERDATA, lparam); - SetDlgItemText(hwnd, IDC_SL, proto->GetSettingString(SKYPE_SETTINGS_LOGIN, L"")); - SetDlgItemText(hwnd, IDC_PW, proto->GetDecodeSettingString(SKYPE_SETTINGS_PASSWORD, L"")); + wchar_t* data = proto->GetSettingString(SKYPE_SETTINGS_LOGIN, L""); + SetDlgItemText(hwnd, IDC_SL, data); + ::mir_free(data); + + data = proto->GetDecodeSettingString(SKYPE_SETTINGS_PASSWORD, L""); + SetDlgItemText(hwnd, IDC_PW, data); + ::mir_free(data); if ( proto->m_iStatus != ID_STATUS_OFFLINE) { @@ -74,8 +79,13 @@ INT_PTR CALLBACK CSkypeProto::SkypeOptionsProc(HWND hwnd, UINT message, WPARAM w proto = reinterpret_cast(lparam); SetWindowLongPtr(hwnd, GWLP_USERDATA, lparam); - SetDlgItemText(hwnd, IDC_SL, proto->GetSettingString(SKYPE_SETTINGS_LOGIN, L"")); - SetDlgItemText(hwnd, IDC_PW, proto->GetDecodeSettingString(SKYPE_SETTINGS_PASSWORD, L"")); + wchar_t* data = proto->GetSettingString(SKYPE_SETTINGS_LOGIN, L""); + SetDlgItemText(hwnd, IDC_SL, data); + ::mir_free(data); + + data = proto->GetDecodeSettingString(SKYPE_SETTINGS_PASSWORD, L""); + SetDlgItemText(hwnd, IDC_PW, data); + ::mir_free(data); if (proto->m_iStatus != ID_STATUS_OFFLINE) { -- cgit v1.2.3