Bug 1120331 - "crash in mozilla::ipc::MessageChannel::Send(IPC::Message*)". r=sotaro

This commit is contained in:
Nicolas Silva 2015-02-04 07:15:00 +01:00
Родитель 66e79878c1
Коммит ccd17ee47f
2 изменённых файлов: 7 добавлений и 1 удалений

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

@ -712,6 +712,10 @@ ClientLayerManager::ReportClientLost(TextureClient& aClient) {
void
ClientLayerManager::ClearCachedResources(Layer* aSubtree)
{
if (mDestroyed) {
// ClearCachedResource was already called by ClientLayerManager::Destroy
return;
}
MOZ_ASSERT(!HasShadowManager() || !aSubtree);
mForwarder->ClearCachedResources();
if (aSubtree) {

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

@ -45,8 +45,10 @@ public:
virtual void Destroy() MOZ_OVERRIDE
{
LayerManager::Destroy();
// It's important to call ClearCachedResource before Destroy because the
// former will early-return if the later has already run.
ClearCachedResources();
LayerManager::Destroy();
}
protected: