diff --git a/gfx/layers/basic/BasicLayers.cpp b/gfx/layers/basic/BasicLayers.cpp index a5ddfafcd44b..217ad5926375 100644 --- a/gfx/layers/basic/BasicLayers.cpp +++ b/gfx/layers/basic/BasicLayers.cpp @@ -1101,7 +1101,7 @@ BasicLayerManager::ClearCachedResources() void BasicLayerManager::ClearLayer(Layer* aLayer) { - ToData(aLayer)->ClearResources(); + ToData(aLayer)->ClearCachedResources(); for (Layer* child = aLayer->GetFirstChild(); child; child = child->GetNextSibling()) { ClearLayer(child);