File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ endsound_callback(int channel)
299
299
PyGILState_STATE gstate = PyGILState_Ensure ();
300
300
int channelnum ;
301
301
Mix_Chunk * sound = pgSound_AsChunk (channeldata [channel ].queue );
302
- Py_DECREF (channeldata [channel ].sound );
302
+ Py_XDECREF (channeldata [channel ].sound );
303
303
channeldata [channel ].sound = channeldata [channel ].queue ;
304
304
channeldata [channel ].queue = NULL ;
305
305
PyGILState_Release (gstate );
@@ -310,7 +310,7 @@ endsound_callback(int channel)
310
310
}
311
311
else {
312
312
PyGILState_STATE gstate = PyGILState_Ensure ();
313
- Py_DECREF (channeldata [channel ].sound );
313
+ Py_XDECREF (channeldata [channel ].sound );
314
314
channeldata [channel ].sound = NULL ;
315
315
PyGILState_Release (gstate );
316
316
Mix_GroupChannel (channel , -1 );
You can’t perform that action at this time.
0 commit comments