Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhonghuaren:testing
cultivation
Cultivation-9-upstream-fix_crash.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Cultivation-9-upstream-fix_crash.patch of Package cultivation
Description: fix a crash when restarting the game Origin: upstream, http://hcsoftware.cvs.sourceforge.net/viewvc/hcsoftware/tempProjects/game2/gameSource/game.cpp?r1=1.155&r2=1.156&view=patch Bug-Debian: http://bugs.debian.org/597851 Author: Jason Rohrer --- a/game2/gameSource/game.cpp +++ b/game2/gameSource/game.cpp @@ -1381,12 +1382,20 @@ mScreen->removeMouseHandler( mMainPanelGuiTranslator ); mScreen->removeKeyboardHandler( mMainPanelGuiTranslator ); - + + // prevent bad access from audio thread during deletion and + // new construction + globalLock.lock(); + delete sceneHandler; // construt new sceneHandler = new GameSceneHandler( screen ); + globalLock.unlock(); + + + sceneHandler->initFromFiles(); restartFlag = false;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor