fix BgrConverter memory free crash