Only free allocated bands

svn path=/trunk/; revision=36330
This commit is contained in:
Thomas Bluemel 2008-09-19 19:26:00 +00:00
parent 773113715b
commit 324b9250cc

View file

@ -368,7 +368,10 @@ static void WINAPI BandSite_Destructor(BandSite *This)
if (This->Bands != NULL)
{
for (i = 0; i < This->BandsAllocated; i++)
FreeBand(This, &This->Bands[i]);
{
if (This->Bands[i].DeskBand != NULL)
FreeBand(This, &This->Bands[i]);
}
CoTaskMemFree(This->Bands);
This->Bands = NULL;
}