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:
Ondrej Holy 2018-05-28 14:35:03 +02:00
parent fe9c6192c4
commit 9ac1ba56a3

View File

@ -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