[gvdb/mcatanzaro/write-contents-async] Apply suggestion to gvdb-builder.c



commit 25ae96ed25192ce54469040e46dce0d95e3265ca
Author: Michael Catanzaro <mcatanzaro posteo net>
Date:   Fri Jun 21 14:39:19 2019 +0000

    Apply suggestion to gvdb-builder.c

 gvdb-builder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gvdb-builder.c b/gvdb-builder.c
index 428ebdd..619e86d 100644
--- a/gvdb-builder.c
+++ b/gvdb-builder.c
@@ -601,7 +601,7 @@ gvdb_table_write_contents_async (GHashTable          *table,
   g_file_replace_contents_async (file, str->str, str->len,
                                  NULL, FALSE,
                                  G_FILE_CREATE_PRIVATE | G_FILE_CREATE_REPLACE_DESTINATION,
-                                 cancellable, replace_contents_cb, task);
+                                 cancellable, replace_contents_cb, g_steal_pointer (&task));
 }
 
 gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]