changeset 13 | 10e98eab6f85 |
parent 0 | dd21522fd290 |
child 16 | a359256acfc6 |
--- a/webengine/osswebengine/WebCore/html/HTMLElementFactory.cpp Fri May 08 08:25:06 2009 +0300 +++ b/webengine/osswebengine/WebCore/html/HTMLElementFactory.cpp Fri Jul 03 15:54:40 2009 +0100 @@ -396,6 +396,16 @@ gFunctionMap->set(tag.localName().impl(), func); } +struct cleanupFuncMap { + ~cleanupFuncMap() { + if( gFunctionMap ) { + gFunctionMap->clear(); + delete gFunctionMap; + gFunctionMap=0; + } + } +}; +static cleanupFuncMap cleanup; static void createFunctionMap() { // Create the table.