From 926206ed621e2a378d6bafd7d13efe5b7db660b7 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 22 Aug 2014 14:17:03 +0200 Subject: [PATCH] Fix possible resource leak Signed-off-by: Sven Strickroth --- src/TortoiseProc/CommitDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TortoiseProc/CommitDlg.cpp b/src/TortoiseProc/CommitDlg.cpp index ce42be5be..833e37fc0 100644 --- a/src/TortoiseProc/CommitDlg.cpp +++ b/src/TortoiseProc/CommitDlg.cpp @@ -1037,7 +1037,7 @@ void CCommitDlg::OnOK() MessageBox(g_Git.GetGitLastErr(_T("Could not get HEAD hash after committing.")), _T("TortoiseGit"), MB_ICONERROR); LONG version = g_Git.Hash2int(hash); - BSTR temp = NULL; + ATL::CComBSTR temp; if (FAILED(hr = pProvider->OnCommitFinished(GetSafeHwnd(), commonRoot, pathList, -- 2.11.4.GIT