OSDN Git Service

kioslave: fix double-free in epubthumbnail
authorIvailo Monev <xakepa10@gmail.com>
Mon, 3 Oct 2022 21:07:52 +0000 (00:07 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 3 Oct 2022 21:07:52 +0000 (00:07 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kioslave/thumbnail/epubthumbnail.cpp

index 1e051e8..76b1af4 100644 (file)
@@ -94,7 +94,6 @@ bool EPUBCreator::create(const QString &path, int width, int height, QImage &img
             } else {
                 kDebug() << "Could not find cover reference for" << pathbytes;
             }
-            ::free(epubdata);
         } else {
             kDebug() << "Could not get" << s_contentpaths[coontentpathcounter] << "for" << pathbytes;
         }