mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gio-tool: Fix GMountOperation leaks
GMountOperation is used on various places, but it is not properly unrefed. Let's fix the leaks.
This commit is contained in:
parent
fe9c6192c4
commit
9ac1ba56a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user