mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +00:00
Crash fix for Symbian. Will have to put up with crummy music a little bit longer.
This commit is contained in:
parent
30edf6b894
commit
b9c5c5fc3d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user