Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1615539 - Fix explicit image memory reporting broken on Windows. …
Browse files Browse the repository at this point in the history
…r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D62899
  • Loading branch information
aosmond committed Feb 14, 2020
1 parent 1b0ceee commit f0bea05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion image/imgLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,9 @@ class imgMemoryReporter final : public nsIMemoryReporter {
"Decoded image data which isn't stored on the heap.",
aCounter.DecodedNonHeap());

ReportValue(aHandleReport, aData, KIND_OTHER, aPathPrefix,
// We don't know for certain whether or not it is on the heap, so let's
// just report it as non-heap for reporting purposes.
ReportValue(aHandleReport, aData, KIND_NONHEAP, aPathPrefix,
"decoded-unknown",
"Decoded image data which is unknown to be on the heap or not.",
aCounter.DecodedUnknown());
Expand Down

0 comments on commit f0bea05

Please sign in to comment.