4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-10 17:59:33 +00:00

assert if tracker is gone (qca shutdown) before manager destructs

svn path=/trunk/kdesupport/qca/; revision=691027
This commit is contained in:
Justin Karneges 2007-07-22 19:24:26 +00:00
parent 2f9411e61f
commit 14f090e422

@ -20,8 +20,6 @@
#include "qca_keystore.h"
#include "qcaprovider.h"
#include <QCoreApplication>
#include <QAbstractEventDispatcher>
#include <QPointer>
@ -29,6 +27,8 @@
#include <QMutex>
#include <QWaitCondition>
#include "qcaprovider.h"
Q_DECLARE_METATYPE(QCA::KeyStoreEntry)
Q_DECLARE_METATYPE(QList<QCA::KeyStoreEntry>)
Q_DECLARE_METATYPE(QList<QCA::KeyStoreEntry::Type>)
@ -1547,6 +1547,7 @@ KeyStoreManager::KeyStoreManager(QObject *parent)
KeyStoreManager::~KeyStoreManager()
{
Q_ASSERT(KeyStoreTracker::instance());
KeyStoreTracker::instance()->removeTarget(d);
delete d;
}