Skip to content

Commit c1f3045

Browse files
committed
Reverted changes per review
1 parent 386f507 commit c1f3045

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src_c/mixer.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -520,14 +520,8 @@ mixer_quit(PyObject *self, PyObject *_null)
520520

521521
if (channeldata) {
522522
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-
Mix_HaltGroup(
529-
(int)(intptr_t)pgSound_AsChunk(channeldata[i].queue));
530-
}
523+
Py_XDECREF(channeldata[i].sound);
524+
Py_XDECREF(channeldata[i].queue);
531525
}
532526
free(channeldata);
533527
channeldata = NULL;

0 commit comments

Comments
 (0)