From b25e8d1955f51b15d566b7e73199b044cfe0efa3 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 7 Sep 2010 20:03:07 +0300 Subject: bugfixes --- options.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'options.cpp') diff --git a/options.cpp b/options.cpp index 00b4b7e..72a0b77 100644 --- a/options.cpp +++ b/options.cpp @@ -330,8 +330,6 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA { break; } - wfstream f(tmp, std::ios::out); - delete [] tmp; wstring str; { TCHAR *tmp = UniGetContactSettingUtf(user_data[item_num+1], szGPGModuleName, "GPGPubKey", _T("")); @@ -343,6 +341,8 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA { str.erase(s, 1); } + wfstream f(tmp, std::ios::out); + delete [] tmp; f<