summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@redhat.com>2023-05-16 14:55:41 -0500
committerMichael Catanzaro <mcatanzaro@redhat.com>2023-05-16 14:56:24 -0500
commit928137b1ebda52f915ed582784dfa03b11474b34 (patch)
tree1a2a9612c6b13fa9e2e6e17e15fcc3dfae873421
parent57a3a704832f1c1244a722357a02cc5a2e1e7ebc (diff)
downloadglib-mcatanzaro/closure-audit.tar.gz
Fix scope annotation on g_file_move_async()mcatanzaro/closure-audit
Currently the callback is invalid after the call to g_file_move_async(), before g_file_move_finish() is called. That is no bueno.
-rw-r--r--gio/gfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gfile.c b/gio/gfile.c
index 4174fbb6f..6458735d5 100644
--- a/gio/gfile.c
+++ b/gio/gfile.c
@@ -3970,7 +3970,7 @@ g_file_move (GFile *source,
* @progress_callback: (nullable) (scope call) (closure progress_callback_data):
* #GFileProgressCallback function for updates
* @progress_callback_data: gpointer to user data for the callback function
- * @callback (closure user_data): a #GAsyncReadyCallback
+ * @callback (scope async) (closure user_data): a #GAsyncReadyCallback
* to call when the request is satisfied
* @user_data: the data to pass to callback function
*