Bug 805013 - Paper over the browser-chrome crashes from certain circumstances that run ~RasterImage off the main thread. r=joe

This commit is contained in:
Josh Matthews 2012-11-07 17:25:27 -05:00
parent 7155c4fc5f
commit 27b8218689

View File

@ -421,7 +421,9 @@ RasterImage::~RasterImage()
num_containers--; num_containers--;
total_source_bytes -= mSourceData.Length(); total_source_bytes -= mSourceData.Length();
DiscardTracker::Remove(&mDiscardTrackerNode); if (NS_IsMainThread()) {
DiscardTracker::Remove(&mDiscardTrackerNode);
}
} }
void void