diff --git a/api/baseapi.cpp b/api/baseapi.cpp index 3e5bbddb..c6fa75da 100644 --- a/api/baseapi.cpp +++ b/api/baseapi.cpp @@ -919,7 +919,7 @@ void TessBaseAPI::SetInputImage(Pix *pix) { pixDestroy(&input_image_); input_image_ = NULL; if (pix) - input_image_ = pixClone(pix); + input_image_ = pixCopy(NULL, pix); } Pix* TessBaseAPI::GetInputImage() {