diff -r 04837bf3a628 -r 21be958eb3ce radioapp/radiowidgets/src/radioutil.cpp --- a/radioapp/radiowidgets/src/radioutil.cpp Tue Oct 12 11:25:14 2010 +0300 +++ b/radioapp/radiowidgets/src/radioutil.cpp Fri Oct 15 16:26:27 2010 +0300 @@ -29,8 +29,6 @@ // Constants -static RadioUtil* theInstance = 0; - /*! * */ @@ -202,9 +200,7 @@ */ RadioUtil& RadioUtil::instance() { - if ( !::theInstance ) { - ::theInstance = new RadioUtil; - } - return *::theInstance; + static RadioUtil gInstance; + return gInstance; }