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