mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 04:13:44 +00:00
Possible fix for #9656
This commit is contained in:
parent
98931d99b0
commit
c332211997
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue