Closed all memory leaks from contours_png2json