Crash fix for Symbian. Will have to put up with crummy music a little bit longer.

This commit is contained in:
Sacha 2013-10-23 04:10:32 +10:00
parent 30edf6b894
commit b9c5c5fc3d

View File

@ -156,17 +156,22 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
vibra = CHWRMVibra::NewL();
#endif
#ifdef __SYMBIAN32__
MainAudio *audio = new MainAudio();
#else
QThread* thread = new QThread;
MainAudio *audio = new MainAudio();
audio->moveToThread(thread);
QObject::connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater()));
thread->start();
#endif
int ret = a.exec();
delete audio;
thread->quit();
#ifdef __SYMBIAN32__
delete vibra;
#else
thread->quit();
#endif
NativeShutdown();
net::Shutdown();