Skip to content

Commit b000246

Browse files
committed
Incref newSound
1 parent 922b63a commit b000246

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src_c/mixer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ snd_copy(PyObject *self, PyObject *_null)
831831
}
832832

833833
Py_DECREF(kwargs);
834+
Py_INCREF(newSound);
834835
return (PyObject *)newSound;
835836
}
836837

0 commit comments

Comments
 (0)