devenum: Remove redundant NULL checks before CoTaskMemFree().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
afe0ba175c
commit
cf3d957950
|
@ -262,8 +262,8 @@ static void DEVENUM_ReadPinTypes(HKEY hkeyPinKey, REGFILTERPINS *rgPin)
|
|||
|
||||
error_cleanup_types:
|
||||
|
||||
if (clsMajorType) CoTaskMemFree(clsMajorType);
|
||||
if (clsMinorType) CoTaskMemFree(clsMinorType);
|
||||
CoTaskMemFree(clsMajorType);
|
||||
CoTaskMemFree(clsMinorType);
|
||||
}
|
||||
|
||||
RegCloseKey(hkeyMajorType);
|
||||
|
@ -358,7 +358,7 @@ static void DEVENUM_ReadPins(HKEY hkeyFilterClass, REGFILTER2 *rgf2)
|
|||
error_cleanup:
|
||||
|
||||
RegCloseKey(hkeyPinKey);
|
||||
if (rgPin->strName) CoTaskMemFree(rgPin->strName);
|
||||
CoTaskMemFree(rgPin->strName);
|
||||
}
|
||||
|
||||
RegCloseKey(hkeyPins);
|
||||
|
|
Loading…
Reference in New Issue