--- a/webengine/osswebengine/WebCore/platform/Timer.cpp Fri May 08 08:25:06 2009 +0300
+++ b/webengine/osswebengine/WebCore/platform/Timer.cpp Fri Jul 03 15:54:40 2009 +0100
@@ -49,6 +49,16 @@
static Vector<TimerBase*>* timerHeap;
static HashSet<const TimerBase*>* timersReadyToFire;
+struct timerCleaner {
+ ~timerCleaner() {
+ if( timerHeap ) {
+ delete timerHeap;
+ timerHeap = 0;
+ }
+ }
+};
+struct timerCleaner cleanTimer;
+
// ----------------
// Class to represent elements in the heap when calling the standard library heap algorithms.