Initialise variable. Either that or check if m_loaded is true in the destructor.
Initialise variable. Either that or check if m_loaded is true in the
destructor.

Valgrind log:
==22755== Conditional jump or move depends on uninitialised value(s)
==22755==    at 0x986C0DF: KateScript::~KateScript() (katescript.cpp:84)
==22755==    by 0x9871365: void qDeleteAll<KateScript* const*>(KateScript* const*, KateScript* const*) (qalgorithms.h:322)
==22755==    by 0x98713AF: void qDeleteAll<QVector<KateScript*> >(QVector<KateScript*> const&) (qalgorithms.h:330)
==22755==    by 0x986DE2C: KateScriptManager::~KateScriptManager() (katescriptmanager.cpp:50)
==22755==    by 0x9921C70: KateGlobal::~KateGlobal() (kateglobal.cpp:169)
==22755==    by 0x98FAFB8: KateGlobal::decRef() (kateglobal.h:172)
==22755==    by 0x98FB1A9: KateFactory::~KateFactory() (katefactory.cpp:48)
==22755==    by 0x44A5D55: void qDeleteAll<QSet<KPluginFactory*>::const_iterator>(QSet<KPluginFactory*>::const_iterator, QSet<KPluginFactory*>::const_iterator) (qalgorithms.h:322)
==22755==    by 0x44A5DBA: void qDeleteAll<KTextEditorFactorySet>(KTextEditorFactorySet const&) (qalgorithms.h:330)
==22755==    by 0x44A28C2: KTextEditorFactorySet::~KTextEditorFactorySet() (ktexteditor.cpp:225)
==22755==    by 0x44A292A: ._243::destroy() (ktexteditor.cpp:217)
==22755==    by 0x4E48420: qt_call_post_routines() (qcoreapplication.cpp:134)
==22755==    by 0x51666FC: QApplication::~QApplication() (qapplication.cpp:915)
==22755==    by 0x466A3AA: KApplication::~KApplication() (kapplication.cpp:948)
==22755==    by 0x403229C: kdemain (kwritemain.cpp:781)
==22755==    by 0x8048775: main (kwrite_dummy.cpp:3)

svn path=/trunk/KDE/kdelibs/kate/; revision=811593

cmacq2/kate,hlamer/kate,sandsmark/kate,DickJ/kate,hlamer/kate,cmacq2/kate,jfmcarreira/kate,jfmcarreira/kate,DickJ/kate,hlamer/kate,hlamer/kate,sandsmark/kate,hlamer/kate,cmacq2/kate,hlamer/kate,jfmcarreira/kate,DickJ/kate,sandsmark/kate,hlamer/kate,sandsmark/kate,DickJ/kate,hlamer/kate,hlamer/kate,hlamer/kate