diff -r 701c5b8fac56 -r 728cabee2c9f QTfrontend/ui/widget/chatwidget.cpp --- a/QTfrontend/ui/widget/chatwidget.cpp Fri Oct 21 08:03:42 2011 +0200 +++ b/QTfrontend/ui/widget/chatwidget.cpp Fri Oct 21 08:41:21 2011 +0200 @@ -122,15 +122,9 @@ { this->gameSettings = gameSettings; this->notify = notify; - if(notify && gameSettings->value("frontend/sound", true).toBool()) { - QFile * tmpFile = HWDataManager::instance().findFileForRead( - "Sounds/voices/Classic/Hello.ogg"); - - helloSound = tmpFile->fileName(); - - // this QFile isn't needed any further - delete tmpFile; - } + if(notify && gameSettings->value("frontend/sound", true).toBool()) + helloSound = HWDataManager::instance().findFileForRead( + "Sounds/voices/Classic/Hello.ogg"); mainLayout.setSpacing(1); mainLayout.setMargin(1);