Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpc-hc/PPageFileMediaInfo.cpp')
-rw-r--r--src/mpc-hc/PPageFileMediaInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mpc-hc/PPageFileMediaInfo.cpp b/src/mpc-hc/PPageFileMediaInfo.cpp
index 8725dc25c..4459b9e69 100644
--- a/src/mpc-hc/PPageFileMediaInfo.cpp
+++ b/src/mpc-hc/PPageFileMediaInfo.cpp
@@ -1,5 +1,5 @@
/*
- * (C) 2009-2014 see Authors.txt
+ * (C) 2009-2015 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -49,10 +49,9 @@ CPPageFileMediaInfo::CPPageFileMediaInfo(CString path, IFileSourceFilter* pFSF,
{
CComQIPtr<IAsyncReader> pAR;
if (pFSF) {
- LPOLESTR pFN;
+ CComHeapPtr<OLECHAR> pFN;
if (SUCCEEDED(pFSF->GetCurFile(&pFN, nullptr))) {
m_fn = pFN;
- CoTaskMemFree(pFN);
}
if (CComQIPtr<IBaseFilter> pBF = pFSF) {