Author: weiden
Date: Fri Sep 19 14:26:00 2008
New Revision: 36330
URL:
http://svn.reactos.org/svn/reactos?rev=36330&view=rev
Log:
Only free allocated bands
Modified:
trunk/reactos/dll/win32/browseui/bandsite.c
Modified: trunk/reactos/dll/win32/browseui/bandsite.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/browseui/bandsit…
==============================================================================
--- trunk/reactos/dll/win32/browseui/bandsite.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/browseui/bandsite.c [iso-8859-1] Fri Sep 19 14:26:00 2008
@@ -368,7 +368,10 @@
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;
}