neil / rpms / udisks2

Forked from rpms/udisks2 a year ago
Clone
7bf807
From 223256777f6e269b8501d95a64c4c6095a7a8a3e Mon Sep 17 00:00:00 2001
7bf807
From: Tomas Bzatek <tbzatek@redhat.com>
7bf807
Date: Sat, 1 Jan 2022 22:02:17 +0100
7bf807
Subject: [PATCH] udiskslinuxfilesystem: Fix GError ownership
7bf807
7bf807
---
7bf807
 src/udiskslinuxfilesystem.c | 8 ++++----
7bf807
 1 file changed, 4 insertions(+), 4 deletions(-)
7bf807
7bf807
diff --git a/src/udiskslinuxfilesystem.c b/src/udiskslinuxfilesystem.c
7bf807
index f7c99757a..a8390a044 100644
7bf807
--- a/src/udiskslinuxfilesystem.c
7bf807
+++ b/src/udiskslinuxfilesystem.c
7bf807
@@ -1739,7 +1739,7 @@ handle_resize (UDisksFilesystem      *filesystem,
7bf807
   object = udisks_daemon_util_dup_object (filesystem, &error);
7bf807
   if (object == NULL)
7bf807
     {
7bf807
-      g_dbus_method_invocation_take_error (invocation, error);
7bf807
+      g_dbus_method_invocation_return_gerror (invocation, error);
7bf807
       goto out;
7bf807
     }
7bf807
 
7bf807
@@ -1921,7 +1921,7 @@ handle_repair (UDisksFilesystem      *filesystem,
7bf807
   object = udisks_daemon_util_dup_object (filesystem, &error);
7bf807
   if (object == NULL)
7bf807
     {
7bf807
-      g_dbus_method_invocation_take_error (invocation, error);
7bf807
+      g_dbus_method_invocation_return_gerror (invocation, error);
7bf807
       goto out;
7bf807
     }
7bf807
 
7bf807
@@ -2089,7 +2089,7 @@ handle_check (UDisksFilesystem      *filesystem,
7bf807
   object = udisks_daemon_util_dup_object (filesystem, &error);
7bf807
   if (object == NULL)
7bf807
     {
7bf807
-      g_dbus_method_invocation_take_error (invocation, error);
7bf807
+      g_dbus_method_invocation_return_gerror (invocation, error);
7bf807
       goto out;
7bf807
     }
7bf807
 
7bf807
@@ -2257,7 +2257,7 @@ handle_take_ownership (UDisksFilesystem      *filesystem,
7bf807
   object = udisks_daemon_util_dup_object (filesystem, &error);
7bf807
   if (object == NULL)
7bf807
     {
7bf807
-      g_dbus_method_invocation_take_error (invocation, error);
7bf807
+      g_dbus_method_invocation_return_gerror (invocation, error);
7bf807
       goto out;
7bf807
     }
7bf807