Skip to content

Commit 31cbb7a

Browse files
committed
Fix legacy conversion filter for QPrint
1 parent 048f6cb commit 31cbb7a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ext/mbstring/libmbfl/filters/mbfilter_qprint.c

+9
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ int mbfl_filt_conv_qprintenc_flush(mbfl_convert_filter *filter)
153153
(*filter->filter_function)('\0', filter);
154154
filter->status &= ~0xffff;
155155
filter->cache = 0;
156+
157+
if (filter->flush_function) {
158+
(*filter->flush_function)(filter->data);
159+
}
160+
156161
return 0;
157162
}
158163

@@ -243,6 +248,10 @@ int mbfl_filt_conv_qprintdec_flush(mbfl_convert_filter *filter)
243248
CK((*filter->output_function)(cache, filter->data));
244249
}
245250

251+
if (filter->flush_function) {
252+
(*filter->flush_function)(filter->data);
253+
}
254+
246255
return 0;
247256
}
248257

0 commit comments

Comments
 (0)