X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fre-engine-Plugin.git;a=blobdiff_plain;f=Plugin.xs;h=fab9308b839fabca90018f5f5adf9e1b292a8bc9;hp=c5e9ebd465648482d86e78dfdc9721861af6c46e;hb=18ec04e7558b13fcd57575f566794a909ca60aca;hpb=4e38e274a3abc92930103ca9d6114f429aa70bbd diff --git a/Plugin.xs b/Plugin.xs index c5e9ebd..fab9308 100644 --- a/Plugin.xs +++ b/Plugin.xs @@ -772,6 +772,7 @@ void _num_capture_buff_FETCH(re::engine::Plugin self, ...) PPCODE: if (items > 1) { + SvREFCNT_dec(self->cb_num_capture_buff_FETCH); self->cb_num_capture_buff_FETCH = ST(1); SvREFCNT_inc(self->cb_num_capture_buff_FETCH); } @@ -780,6 +781,7 @@ void _num_capture_buff_STORE(re::engine::Plugin self, ...) PPCODE: if (items > 1) { + SvREFCNT_dec(self->cb_num_capture_buff_STORE); self->cb_num_capture_buff_STORE = ST(1); SvREFCNT_inc(self->cb_num_capture_buff_STORE); } @@ -788,6 +790,7 @@ void _num_capture_buff_LENGTH(re::engine::Plugin self, ...) PPCODE: if (items > 1) { + SvREFCNT_dec(self->cb_num_capture_buff_LENGTH); self->cb_num_capture_buff_LENGTH = ST(1); SvREFCNT_inc(self->cb_num_capture_buff_LENGTH); }