Bug 781892 - Clear mImageQueue when setIdle or shuting down. r=cjones

This commit is contained in:
Kan-Ru Chen (陳侃如) 2012-08-29 03:52:35 -03:00
parent b537d68146
commit ed13eb8ba9

View File

@ -66,6 +66,7 @@ void ImageContainerChild::SetIdleNow()
SendFlush();
ClearSharedImagePool();
mImageQueue.Clear();
}
void ImageContainerChild::DispatchSetIdle()
@ -375,6 +376,7 @@ void ImageContainerChild::DestroyNow()
"Incorrect state in the destruction sequence.");
ClearSharedImagePool();
mImageQueue.Clear();
// will decrease the refcount and, in most cases, delete the ImageContainerChild
Send__delete__(this);