CVS commit by mlaurent: - if (ctx0=0) ContextNameList->clear(); + if (ctx0 == 0) + ContextNameList->clear(); cullmann or jowenn could you look at it please. M +27 -22 katehighlight.cpp 1.79 --- kdelibs/kate/part/katehighlight.cpp #1.78:1.79 @@ -843,4 +844,5 @@ Highlight::Highlight(const syntaxModeLis Highlight::~Highlight() { + contextList.setAutoDelete( true ); } @@ -1665,5 +1667,6 @@ void Highlight::createContextNameList(Q kdDebug(13010)<<"creatingContextNameList:BEGIN"<clear(); + if (ctx0 == 0) + ContextNameList->clear(); HlManager::self()->syntax->setIdentifier(buildIdentifier); @@ -1973,5 +1976,7 @@ HlManager::HlManager() : QObject(0) HlManager::~HlManager() { - if(syntax) delete syntax; + if(syntax) + delete syntax; + }