We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 386f507 commit c1f3045Copy full SHA for c1f3045
src_c/mixer.c
@@ -520,14 +520,8 @@ mixer_quit(PyObject *self, PyObject *_null)
520
521
if (channeldata) {
522
for (i = 0; i < numchanneldata; ++i) {
523
- if (channeldata[i].sound) {
524
- Mix_HaltGroup(
525
- (int)(intptr_t)pgSound_AsChunk(channeldata[i].sound));
526
- }
527
- if (channeldata[i].queue) {
528
529
- (int)(intptr_t)pgSound_AsChunk(channeldata[i].queue));
530
+ Py_XDECREF(channeldata[i].sound);
+ Py_XDECREF(channeldata[i].queue);
531
}
532
free(channeldata);
533
channeldata = NULL;
0 commit comments