bug 1510447 - Fix a blob image key leak. r=jrmuizel
☠☠ backed out by 1855e3f4af34 ☠ ☠
authorNicolas Silva <nsilva@mozilla.com>
Wed, 28 Nov 2018 16:16:29 +0000
changeset 507751 848f4907fb07bec6d27700edd556d7e68e271eae
parent 507750 81bf174016f60a3a2577239fc38c9d9d3cf6f519
child 507752 ba69286f9c33df034a2a471859acaf9cd12d9380
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1510447
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1510447 - Fix a blob image key leak. r=jrmuizel Differential Revision: https://phabricator.services.mozilla.com/D13262
gfx/layers/wr/WebRenderUserData.cpp
--- a/gfx/layers/wr/WebRenderUserData.cpp
+++ b/gfx/layers/wr/WebRenderUserData.cpp
@@ -301,16 +301,17 @@ WebRenderImageData::CreateImageClientIfN
 WebRenderFallbackData::WebRenderFallbackData(WebRenderLayerManager* aWRManager, nsDisplayItem* aItem)
   : WebRenderImageData(aWRManager, aItem)
   , mInvalid(false)
 {
 }
 
 WebRenderFallbackData::~WebRenderFallbackData()
 {
+  ClearImageKey();
 }
 
 nsDisplayItemGeometry*
 WebRenderFallbackData::GetGeometry()
 {
   return mGeometry.get();
 }