mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 17:32:32 +00:00
Only free allocated bands
svn path=/trunk/; revision=36330
This commit is contained in:
parent
773113715b
commit
324b9250cc
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue