Commit 25e996bd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oledb32: Fix DBPROPSET and DBPROPINFOSET cleanup.

parent 1cff1145
......@@ -351,10 +351,9 @@ static void free_dbpropset(ULONG count, DBPROPSET *propset)
int p;
for (p = 0; p < propset[i].cProperties; p++)
{
VariantClear(&propset[i].rgProperties[p].vValue);
CoTaskMemFree(&propset[i].rgProperties[p]);
}
CoTaskMemFree(propset[i].rgProperties);
}
CoTaskMemFree(propset);
}
......@@ -368,10 +367,9 @@ static void free_dbpropinfoset(ULONG count, DBPROPINFOSET *propinfoset)
int p;
for (p = 0; p < propinfoset[i].cPropertyInfos; p++)
{
VariantClear(&propinfoset[i].rgPropertyInfos[p].vValues);
CoTaskMemFree(&propinfoset[i].rgPropertyInfos[p]);
}
CoTaskMemFree(propinfoset[i].rgPropertyInfos);
}
CoTaskMemFree(propinfoset);
}
......
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