Deallocating both onload and onerror handlers.
Freeing custom buffer created during canvas jpeg streaming.
Merge remote-tracking branch 'upstream/master' into memleaks
Merge remote-tracking branch 'jasonrose/master' into memleaks
Testing...
Added scopes.
Merge remote-tracking branch 'upstream/master' into memleakspull
Merge pull request #365 from kkoopa/memleakspull

Revised fix of memory leak #318