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

garbage collect expired Blobs

parent f554871e
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -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);