mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:38:21 +00:00
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 a new issue