kutils: plug KExiv2 memory leaks

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-11-02 12:15:09 +02:00
parent b8b37e01a3
commit bb9979b108
2 changed files with 6 additions and 0 deletions

View file

@ -102,6 +102,11 @@ KExiv2::KExiv2(const QString &path)
{
}
KExiv2::~KExiv2()
{
delete d;
}
bool KExiv2::isSupported()
{
#if defined(HAVE_EXIV2)

View file

@ -58,6 +58,7 @@ public:
@brief Contructs object from @p path
*/
KExiv2(const QString &path);
~KExiv2();
static bool isSupported();