Thanks Albert!!!!!
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=913263
KEduVocExpression::KEduVocExpressionPrivate::~KEduVocExpressionPrivate()
{
- qDeleteAll(m_translations);
+ QMap <int, KEduVocTranslation*> translations = m_translations;
+ // empty the translations map, otherwise removal from word type will try to access them again when they don't exist any more
+ m_translations.clear();
+ qDeleteAll(translations);
}
KEduVocExpression::KEduVocExpressionPrivate::KEduVocExpressionPrivate(const KEduVocExpressionPrivate & other)
}
}
- // TODO translation(i)'s d pointer can be null. How should we fix this?
// remove from cache
bool found = false;
foreach(int i, translation->entry()->translationIndices()) {