We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1232

Summary: timidity, set master_drumset and master_tonebank to NULL upon exit
Product: SDL_sound Reporter: Ozkan Sezer <sezeroz>
Component: everythingAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Ryan C. Gordon <icculus>
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: set master_drumset and master_tonebank to NULL after free()ing

Description Ozkan Sezer 2011-06-15 11:38:39 UTC
Created attachment 630 [details]
set master_drumset and master_tonebank to NULL after free()ing

Timidity_Exit() doesn't set master_drumset and master_tonebank to NULL which may lead to segfaults upon reinitialization. Attached tiny patch should handle that.
Comment 1 Ryan C. Gordon 2011-06-15 13:15:18 UTC
This is now hg changeset e564b7029c29 for the development branch, and hg changeset 941847b13998 for the stable-1.0 branch.

Thanks!

--ryan.