summaryrefslogtreecommitdiffstats
path: root/gio
diff options
context:
space:
mode:
Diffstat (limited to 'gio')
-rw-r--r--gio/gio.override4
1 files changed, 3 insertions, 1 deletions
diff --git a/gio/gio.override b/gio/gio.override
index f6df13a..e2b8e50 100644
--- a/gio/gio.override
+++ b/gio/gio.override
@@ -300,7 +300,9 @@ _wrap_g_input_stream_read_async(PyGObject *self, PyObject *args, PyObject *kwarg
g_slice_free(PyGAsyncRequestNotify, notify);
return NULL;
}
-
+ Py_INCREF(notify->callback);
+ Py_XINCREF(notify->data);
+
buffer = PyString_FromStringAndSize((char *)NULL, count);
if (buffer == NULL)
return NULL;