- The pattern bitmap can get deleted during the GDI cleanup for process before the brush itself.
- Gets rid of some of those pesky "GreDeleteObject: Trying to delete invalid object" debug prints.
svn path=/trunk/; revision=73812
GdiPoolFree(GetBrushAttrPool(), this->pBrushAttr);
}
- /* Delete the pattern bitmap */
- if (this->hbmPattern != NULL)
+ /* Delete the pattern bitmap (may have already been deleted during gdi cleanup) */
+ if (this->hbmPattern != NULL && GreIsHandleValid(this->hbmPattern))
{
GreSetBitmapOwner(this->hbmPattern, BASEOBJECT::OWNER::POWNED);
GreDeleteObject(this->hbmPattern);