author | Morris Tseng <mtseng@mozilla.com> |
Tue, 18 Oct 2016 13:36:50 -0400 | |
changeset 426547 | 38ea7fcb59ec50e97d9b2fd6f88dc82474148053 |
parent 426483 | 01ab78dd98805e150b0311cce2351d5b408f3001 |
child 534205 | de4ec42e73d33cc222a484d7adf56a800146c4d9 |
push id | 32736 |
push user | bmo:mtseng@mozilla.com |
push date | Tue, 18 Oct 2016 17:37:56 +0000 |
reviewers | jgilbert |
bugs | 1281796 |
milestone | 52.0a1 |
--- a/dom/canvas/OffscreenCanvas.h +++ b/dom/canvas/OffscreenCanvas.h @@ -155,16 +155,17 @@ public: virtual already_AddRefed<nsISupports> GetContext(JSContext* aCx, const nsAString& aContextId, JS::Handle<JS::Value> aContextOptions, ErrorResult& aRv) override; void SetNeutered() { + ClearResources(); mNeutered = true; } bool IsNeutered() const { return mNeutered; }