oledb32: Fix DBPROPSET and DBPROPINFOSET cleanup.
This commit is contained in:
parent
1cff1145b0
commit
25e996bd6c
|
@ -351,10 +351,9 @@ static void free_dbpropset(ULONG count, DBPROPSET *propset)
|
||||||
int p;
|
int p;
|
||||||
|
|
||||||
for (p = 0; p < propset[i].cProperties; p++)
|
for (p = 0; p < propset[i].cProperties; p++)
|
||||||
{
|
|
||||||
VariantClear(&propset[i].rgProperties[p].vValue);
|
VariantClear(&propset[i].rgProperties[p].vValue);
|
||||||
CoTaskMemFree(&propset[i].rgProperties[p]);
|
|
||||||
}
|
CoTaskMemFree(propset[i].rgProperties);
|
||||||
}
|
}
|
||||||
CoTaskMemFree(propset);
|
CoTaskMemFree(propset);
|
||||||
}
|
}
|
||||||
|
@ -368,10 +367,9 @@ static void free_dbpropinfoset(ULONG count, DBPROPINFOSET *propinfoset)
|
||||||
int p;
|
int p;
|
||||||
|
|
||||||
for (p = 0; p < propinfoset[i].cPropertyInfos; p++)
|
for (p = 0; p < propinfoset[i].cPropertyInfos; p++)
|
||||||
{
|
|
||||||
VariantClear(&propinfoset[i].rgPropertyInfos[p].vValues);
|
VariantClear(&propinfoset[i].rgPropertyInfos[p].vValues);
|
||||||
CoTaskMemFree(&propinfoset[i].rgPropertyInfos[p]);
|
|
||||||
}
|
CoTaskMemFree(propinfoset[i].rgPropertyInfos);
|
||||||
}
|
}
|
||||||
CoTaskMemFree(propinfoset);
|
CoTaskMemFree(propinfoset);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue