Fix memory leak in keybundle unittest

This commit is contained in:
Albert Astals Cid 2020-06-22 21:54:12 +02:00
parent 3242caee6a
commit c68a5e449f

View File

@ -135,7 +135,7 @@ void KeyBundleTest::privKey()
}
void KeyBundleTest::createBundle()
{
QCA::KeyBundle *newBundle = new QCA::KeyBundle;
QScopedPointer<QCA::KeyBundle> newBundle(new QCA::KeyBundle);
QVERIFY( newBundle->isNull() );