Commit 917d9287 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

garbage collect expired Blobs

parent f554871e
...@@ -425,8 +425,12 @@ ...@@ -425,8 +425,12 @@
ctx.drawImage(this,0,0,cnv_w,cnv_h); ctx.drawImage(this,0,0,cnv_w,cnv_h);
decode_and_display(ctx); decode_and_display(ctx);
} }
//delete this.src;
URL.revokeObjectURL(this.src);
}; };
//obj.blob = window.URL.createObjectURL(http.response); //obj.blob = window.URL.createObjectURL(http.response);
//process_image(obj.blob); //process_image(obj.blob);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment