summaryrefslogtreecommitdiffstats
path: root/gio
diff options
context:
space:
mode:
Diffstat (limited to 'gio')
-rw-r--r--gio/gfile.override10
1 files changed, 10 insertions, 0 deletions
diff --git a/gio/gfile.override b/gio/gfile.override
index 24785b6..cae5993 100644
--- a/gio/gfile.override
+++ b/gio/gfile.override
@@ -236,6 +236,8 @@ _wrap_g_file_load_contents_async(PyGObject *self,
if (!pygio_check_cancellable(pycancellable, &cancellable))
return NULL;
+ Py_INCREF(notify->callback);
+ Py_XINCREF(notify->data);
g_file_load_contents_async(G_FILE(self->obj),
cancellable,
(GAsyncReadyCallback)async_result_callback_marshal,
@@ -819,6 +821,8 @@ _wrap_g_file_append_to_async(PyGObject *self, PyObject *args, PyObject *kwargs)
if (!pygio_check_cancellable(pycancellable, &cancellable))
return NULL;
+ Py_INCREF(notify->callback);
+ Py_XINCREF(notify->data);
g_file_append_to_async(G_FILE(self->obj), flags, io_priority, cancellable,
(GAsyncReadyCallback)async_result_callback_marshal,
notify);
@@ -862,6 +866,8 @@ _wrap_g_file_create_async(PyGObject *self, PyObject *args, PyObject *kwargs)
if (!pygio_check_cancellable(pycancellable, &cancellable))
return NULL;
+ Py_INCREF(notify->callback);
+ Py_XINCREF(notify->data);
g_file_create_async(G_FILE(self->obj), flags, io_priority, cancellable,
(GAsyncReadyCallback)async_result_callback_marshal,
notify);
@@ -911,6 +917,8 @@ _wrap_g_file_replace_async(PyGObject *self, PyObject *args, PyObject *kwargs)
if (!pygio_check_cancellable(pycancellable, &cancellable))
return NULL;
+ Py_INCREF(notify->callback);
+ Py_XINCREF(notify->data);
g_file_replace_async(G_FILE(self->obj), etag, make_backup, flags,
io_priority, cancellable,
(GAsyncReadyCallback)async_result_callback_marshal,
@@ -957,6 +965,8 @@ _wrap_g_file_query_info_async(PyGObject *self, PyObject *args, PyObject *kwargs)
if (!pygio_check_cancellable(pycancellable, &cancellable))
return NULL;
+ Py_INCREF(notify->callback);
+ Py_XINCREF(notify->data);
g_file_query_info_async(G_FILE(self->obj), attributes, flags,
io_priority, cancellable,
(GAsyncReadyCallback)async_result_callback_marshal,