Now deletes the images and releases the reference to the image group

This commit is contained in:
troy%netscape.com 1998-08-09 16:42:06 +00:00
Родитель c27502fec7
Коммит c2d779ef60
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -286,6 +286,7 @@ nsThrobber::~nsThrobber()
{
NS_IF_RELEASE(mInnerWidget);
RemoveThrobber(this);
DestroyThrobberImages();
}
nsrefcnt
@ -459,6 +460,8 @@ nsThrobber::LoadThrobberImages()
mWidth - 2,
mHeight - 2, 0),
cnt);
// Note: the throbber observer was created with a ref count of 0
// which is why we don't have to release a reference to it
}
return rv;
@ -487,6 +490,7 @@ nsThrobber::DestroyThrobberImages()
}
}
delete mImages;
NS_RELEASE(mImageGroup);
}
}