From 77ea4f4b6d0b4264973fde7a6e3f4e725210cc0f Mon Sep 17 00:00:00 2001 From: kkapsner Date: Sun, 5 Oct 2014 15:08:01 +0200 Subject: [PATCH] Finally removed memory leak? --- canvasblocker.xpi | Bin 20996 -> 21005 bytes lib/main.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/canvasblocker.xpi b/canvasblocker.xpi index 342772c71d171b72eca608419576aebdd3560cc4..b0a98a20626ed1027b104bce69e923b0b649db1a 100644 GIT binary patch delta 2270 zcmV<42qE``qydej0S!<~0|XQR000O8=2wi(1 zRiZj{?Ue@>PR5xed)chh-8DG`{@*+MGj`%Y+Nyo16k=z0=9~FucfVQEam`CbE1qW0 z@Ai^fLM)Y_rAmhH_TKG9emb6j`dG~i%0I*8;``!?N|lbxfPU4^QS?}df0*H~_$*#c z>4_+p3r1C%43f#UyXZGQYzdU3w86$F4{o zFS20h%V8PYTBb>QetQ2xe@LDs@!>l2^p+5ENZylka!c;X9XTK=$;dNl$QjuuFC@Rq zOi>6qI7u=Dz_p1Lqx*~dCL-;ffHLC>+4EtCI05r^} zl~lZ#gDacO!^aB|*Rt&*2pGTN?VgQaX!|r@dW%|bB;QBDMN(5Le{)&QVawj=ZdIF( zM)8%iwQp8|oxP5)Z5ngJ^oEka#+ZwMKWZuOSB>o^2ueqn~pDgYBzCgVh?*7Fr+C;I@tE zn*Yv3Bm3ztvkO_3Gu*ha8FB}3G->?HISwY>g#`BT9ke+&7K;O(o~lhy-^e|zUF z!h(%JA&7NPt>M5qd=R2|%3>c^BT+tr?}*bf$j#WNv2zY3)_Q5p_s`DaqZ6kufq-?^ z9TfY4F&xAv!Mkxp+Iy=-)CUU<8c(j%d_31~HV?8TmsIOw*k^9_TuNnuifq^P;t|9X zDkPsIr&jMAf7GH9Du=o5_Qo)Dk_Q3BY}mpvEBJ}Cr*OVJl&(lPl`Ulr%DWk>=G|z0 z9q+9Sn{A28+3!@+2L}IAf*LLy&fVbt4%-%w9Vq|IAO9z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NOcQ5TjWR(M}2T?od-!hvK0^a z*JF)l>8TF@IXXK99?nuj_4hJT7OxmYR3l31p%ACWgfPjWt2!A_Sw@XcV7We zO928D02BZK00;m!b3~IKO>6@;b3~JkO*R8Ib40VoOd60{{SC3IG5U00000000000002Cfe4e} MQ6~llO#lD@05V!eM*si- diff --git a/lib/main.js b/lib/main.js index 23201fb..1c3e0f3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -148,10 +148,10 @@ // }); worker.port.on("isPDF", function(blocking){ if (prefs.allowPDFCanvas){ - worker.port.emit("unblock"); + this.emit("unblock"); } else { - worker.port.emit(blocking, true); + this.emit(blocking, true); } }); worker.port.emit("setTranslation", "askForPermission", _("askForPermission"));