diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-10-06 09:54:57 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-10-06 09:54:57 +0000 |
commit | 15dafd06973f1a3a49faeeb7b781bd11f9e011a5 (patch) | |
tree | 751ec084f31c5198fa2453bcad9bce2499ff6b55 /protocols/Skype/src/skype_dialogs.cpp | |
parent | e8fa894df94628c991f19a7c1642bac68fa069b1 (diff) |
- added part of contact info loading
git-svn-id: http://svn.miranda-ng.org/main/trunk@1790 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_dialogs.cpp')
-rw-r--r-- | protocols/Skype/src/skype_dialogs.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
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<CSkypeProto*>(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<CSkypeProto*>(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)
{
|