Fix canvas memory leak.

Fixes: 430515056
Test: npm run test:unit:ci

Change-Id: Iaaff69a2433f79c1322e13cdf69ae250594b6aa5
2 files changed