Commit 9ac1ba56 authored by Ondrej Holy's avatar Ondrej Holy

gio-tool: Fix GMountOperation leaks

GMountOperation is used on various places, but it is not properly unrefed.
Let's fix the leaks.
parent fe9c6192
Pipeline #13201 passed with stages
in 29 minutes and 37 seconds
......@@ -254,6 +254,8 @@ mount_mountable_done_cb (GObject *object,
else
g_object_unref (target);
g_object_unref (op);
outstanding_mounts--;
if (outstanding_mounts == 0)
......@@ -282,6 +284,8 @@ mount_done_cb (GObject *object,
g_error_free (error);
}
g_object_unref (op);
outstanding_mounts--;
if (outstanding_mounts == 0)
......@@ -1010,6 +1014,8 @@ mount_with_device_file (const char *device_file)
mount_with_device_file_cb,
id);
g_object_unref (op);
outstanding_mounts++;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment