Possible fix for #9656

This commit is contained in:
Kovid Goyal
2026-03-13 19:16:44 +05:30
parent 98931d99b0
commit c332211997

View File

@@ -734,6 +734,7 @@ read_drop_data(GLFWwindow *window, GLFWDropEvent *ev) {
PyObject *data = chunk;
RAII_PyObject(existing, PyDict_GetItemString(global_state.drop_dest.data, ev->mimes[0]));
if (existing) {
existing = Py_NewRef(existing); // because PyBytes_Concat steals a reference
PyBytes_Concat(&existing, chunk);
data = existing;
}