From c4c880a5d1ab2c2f17274c5da713a3c1106ccd8c Mon Sep 17 00:00:00 2001 From: He MingYang Date: Mon, 12 Jul 2021 17:12:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(ocr=20=E8=AF=86=E5=88=AB):=20=E5=86=85?= =?UTF-8?q?=E5=AD=98=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 内存释放问题修改 Log: no Change-Id: I99f0e931f70f455df4891089eb8f18a3532656fd --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1409632..4780852 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -94,8 +94,7 @@ int main(int argc, char *argv[]) OcrInterface *pOcr = new OcrInterface("com.deepin.Ocr", "/com/deepin/Ocr", QDBusConnection::sessionBus(), &instance); qDebug() << __FUNCTION__ << __LINE__; pOcr->openFile(QString(argv[1])); - //pOcr->openImage(QImage(QSize(500, 145), QImage::Format_RGB32)); - //pOcr->openImageAndName(QImage(QSize(500, 145), QImage::Format_RGB32),"test"); + delete pOcr; return 0; }