Commit 2d05c24a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

quartz: Free wszPatternString (Coverity).

parent 5d0ae3d1
...@@ -335,12 +335,15 @@ HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID * ...@@ -335,12 +335,15 @@ HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID *
break; break;
} }
if (strcmpW(wszValueName, source_filter_name)==0) if (strcmpW(wszValueName, source_filter_name)==0) {
HeapFree(GetProcessHeap(), 0, wszPatternString);
continue; continue;
}
/* if it is not the source filter value */ /* if it is not the source filter value */
if (process_pattern_string(wszPatternString, pReader) == S_OK) if (process_pattern_string(wszPatternString, pReader) == S_OK)
{ {
HeapFree(GetProcessHeap(), 0, wszPatternString);
if (majorType && FAILED(CLSIDFromString(wszMajorKeyName, majorType))) if (majorType && FAILED(CLSIDFromString(wszMajorKeyName, majorType)))
break; break;
if (minorType && FAILED(CLSIDFromString(wszMinorKeyName, minorType))) if (minorType && FAILED(CLSIDFromString(wszMinorKeyName, minorType)))
...@@ -354,8 +357,8 @@ HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID * ...@@ -354,8 +357,8 @@ HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID *
break; break;
} }
bFound = TRUE; bFound = TRUE;
} } else
HeapFree(GetProcessHeap(), 0, wszPatternString); HeapFree(GetProcessHeap(), 0, wszPatternString);
} }
CloseHandle(hkeyMinor); CloseHandle(hkeyMinor);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment